mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
1b1fe8feb3
2003-04-27 H.J. Lu <hjl@gnu.org> * elf-bfd.h (ELF_LINK_DYNAMIC_DEF): New. (ELF_LINK_DYNAMIC_WEAK): New. * elflink.h (elf_merge_symbol): Add one argument to indicate if a symbol should be skipped. Ignore definitions in dynamic objects for symbols with non-default visibility. (elf_add_default_symbol): Adjusted. (elf_link_add_object_symbols): Check if a symbol should be skipped. Don't merge the visibility field with the one from a dynamic object. (elf_link_check_versioned_symbol): Use undef_bfd. (elf_link_output_extsym): Warn if a forced local symbol is referenced from dynamic objects. Make non-weak undefined symbol with non-default visibility a fatal error. ld/testsuite/ 2003-04-27 H.J. Lu <hjl@gnu.org> * ld-elfvsb/elfvsb.dat: Updated. * ld-elfvsb/elfvsb.exp: Likewise. * ld-elfvsb/main.c: Likewise. * ld-elfvsb/sh1.c: Likewise. * ld-elfvsb/sh2.c: Likewise.
27 lines
725 B
Plaintext
27 lines
725 B
Plaintext
mainvar == 1
|
|
overriddenvar == 2
|
|
shlibvar1 == 3
|
|
shlib_mainvar () == 1
|
|
shlib_overriddenvar () == 2
|
|
shlib_shlibvar1 () == 3
|
|
shlib_shlibvar2 () == 4
|
|
shlib_shlibcall () == 5
|
|
shlib_shlibcall2 () == 8
|
|
shlib_maincall () == 6
|
|
main_called () == 6
|
|
shlib_checkfunptr1 (shlib_shlibvar1) == 1
|
|
shlib_checkfunptr2 (main_called) == 1
|
|
shlib_getfunptr1 () == shlib_shlibvar1
|
|
shlib_getfunptr2 () == main_called
|
|
shlib_check () == 1
|
|
visibility_check () == 1
|
|
visibility_checkfunptr () == 1
|
|
main_visibility_check () == 1
|
|
visibility_checkvar () == 1
|
|
visibility_checkvarptr () == 1
|
|
main_visibility_checkvar () == 1
|
|
main_visibility_checkcom () == 1
|
|
shlib_visibility_checkcom () == 1
|
|
main_visibility_checkweak () == 1
|
|
shlib_visibility_checkweak () == 1
|