aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-10-28 06:45:33 +0000
committerAlan Modra <amodra@gmail.com>2010-10-28 06:45:33 +0000
commit24898b7032d87189fb709337d3806d629cf0a344 (patch)
tree2ac304a81cad2b856a579c5b6b412ed0f4776d56 /ld/lexsup.c
parent47f929815c2345016f4c1c378da0718dfcb9984f (diff)
downloadgdb-24898b7032d87189fb709337d3806d629cf0a344.zip
gdb-24898b7032d87189fb709337d3806d629cf0a344.tar.gz
gdb-24898b7032d87189fb709337d3806d629cf0a344.tar.bz2
* 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/lexsup.c')
-rw-r--r--ld/lexsup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 0c44151..39ca326 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -1307,7 +1307,7 @@ parse_args (unsigned argc, char **argv)
config.dynamic_link = FALSE;
break;
case 'u':
- ldlang_add_undef (optarg);
+ ldlang_add_undef (optarg, TRUE);
break;
case OPTION_UNIQUE:
if (optarg != NULL)