From 24898b7032d87189fb709337d3806d629cf0a344 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 28 Oct 2010 06:45:33 +0000 Subject: * 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. --- ld/emultempl/aix.em | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/emultempl/aix.em') diff --git a/ld/emultempl/aix.em b/ld/emultempl/aix.em index 497f51d..4dc36c3 100644 --- a/ld/emultempl/aix.em +++ b/ld/emultempl/aix.em @@ -1193,7 +1193,7 @@ gld${EMULATION_NAME}_read_file (const char *filename, bfd_boolean import) { struct export_symbol_list *n; - ldlang_add_undef (symname); + ldlang_add_undef (symname, TRUE); n = ((struct export_symbol_list *) xmalloc (sizeof (struct export_symbol_list))); n->next = export_symbols; -- cgit v1.1