diff options
author | Alan Modra <amodra@gmail.com> | 2010-10-28 06:45:33 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-10-28 06:45:33 +0000 |
commit | 24898b7032d87189fb709337d3806d629cf0a344 (patch) | |
tree | 2ac304a81cad2b856a579c5b6b412ed0f4776d56 /ld/ldgram.y | |
parent | * ld-elf/sec-to-seg.exp (B_test_same_seg): Clear for i960, (diff) | |
download | binutils-gdb-24898b7032d87189fb709337d3806d629cf0a344.tar.gz binutils-gdb-24898b7032d87189fb709337d3806d629cf0a344.tar.bz2 binutils-gdb-24898b7032d87189fb709337d3806d629cf0a344.zip |
* ldlang.h (ldlang_add_undef): Add cmdline param.
* ldlang.c (undef_from_cmdline): New var.
(ldlang_add_undef): Add cmdline param. Set undef_from_cmdline.
(lang_end): Really require -e or -u from command line on
relocatable --gc-sections.
* ldemul.c (after_parse_default): Adjust ldlang_add_undef call.
* ldgram.y (extern_name_list_body): Likewise.
* lexsup.c (parse_args): Likewise.
* emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r-- | ld/ldgram.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index 49d9ff1bc3a..69a84c72982 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -287,11 +287,11 @@ extern_name_list: extern_name_list_body: NAME - { ldlang_add_undef ($1); } + { ldlang_add_undef ($1, FALSE); } | extern_name_list_body NAME - { ldlang_add_undef ($2); } + { ldlang_add_undef ($2, FALSE); } | extern_name_list_body ',' NAME - { ldlang_add_undef ($3); } + { ldlang_add_undef ($3, FALSE); } ; script_file: |