mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-14 11:25:52 +08:00
lexsup.c (parse_args): Report unresolved symbols in shared libraries when
creating a dynamic executable. This is a restoration of the default behaviour for previous versions of the linker.
This commit is contained in:
@ -1,4 +1,11 @@
|
|||||||
2003-10-03 Matt Thomas <matt@3am-software.com>
|
2003-10-06 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* lexsup.c (parse_args): Report unresolved symbols in shared
|
||||||
|
libraries when creating a dynamic executable. This is a
|
||||||
|
restoration of the default behaviour for previous versions of
|
||||||
|
the linker.
|
||||||
|
|
||||||
|
2003-10-06 Matt Thomas <matt@3am-software.com>
|
||||||
|
|
||||||
* emulparams/hppanbsd.sh: Remove OUTPUT_FORMAT.
|
* emulparams/hppanbsd.sh: Remove OUTPUT_FORMAT.
|
||||||
* emulparams/hppaobsd.sh: Add OUTPUT_FORMAT="elf32-hppa".
|
* emulparams/hppaobsd.sh: Add OUTPUT_FORMAT="elf32-hppa".
|
||||||
|
13
ld/lexsup.c
13
ld/lexsup.c
@ -660,12 +660,19 @@ parse_args (unsigned argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
case OPTION_CALL_SHARED:
|
case OPTION_CALL_SHARED:
|
||||||
config.dynamic_link = TRUE;
|
config.dynamic_link = TRUE;
|
||||||
/* When linking against shared libraries, the default
|
/* When linking against shared libraries, the default behaviour is
|
||||||
behaviour is to ignore any unresolved references. */
|
to report any unresolved references. This is for backwards
|
||||||
|
comptability with previous linker behaviour. Whilst strictly
|
||||||
|
speaking it is not a failure to encounter unresolved symbols at
|
||||||
|
link time - the symbol *might* be available at load time - it is
|
||||||
|
nevertheless necessary for the correct execution of the autoconf
|
||||||
|
package. (It needs to be able to detect functions that are not
|
||||||
|
provided by the host OS). Since this package is used by lots of
|
||||||
|
projects, maintaining the old linker behaviour is important. */
|
||||||
if (link_info.unresolved_syms_in_objects == RM_NOT_YET_SET)
|
if (link_info.unresolved_syms_in_objects == RM_NOT_YET_SET)
|
||||||
link_info.unresolved_syms_in_objects = RM_IGNORE;
|
link_info.unresolved_syms_in_objects = RM_IGNORE;
|
||||||
if (link_info.unresolved_syms_in_shared_libs == RM_NOT_YET_SET)
|
if (link_info.unresolved_syms_in_shared_libs == RM_NOT_YET_SET)
|
||||||
link_info.unresolved_syms_in_shared_libs = RM_IGNORE;
|
link_info.unresolved_syms_in_shared_libs = how_to_report_unresolved_symbols;
|
||||||
break;
|
break;
|
||||||
case OPTION_NON_SHARED:
|
case OPTION_NON_SHARED:
|
||||||
config.dynamic_link = FALSE;
|
config.dynamic_link = FALSE;
|
||||||
|
Reference in New Issue
Block a user