mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
a8bc481f35
This patch adds a primary support for hidden and internal visibility in GNU linker for XCOFF format. The protected visibility isn't yet supported. PR 22085 bfd/ChangeLog: * xcofflink.c (xcoff_dynamic_definition_p): Add hidden and internal visibility support. (xcoff_link_add_symbols): Likewise. (xcoff_auto_export_p): Likewise. (bfd_xcoff_export_symbol): Likewise. (xcoff_link_input_bfd): Likewise. ld/ChangeLog: * testsuite/ld-vsb/main.c: Adapt for XCOFF. * testsuite/ld-vsb/sh1.c: Likewse. * testsuite/ld-vsb/vsb.exp: Likewise. * testsuite/ld-vsb/visibility-1-xcoff-32.d: New test. * testsuite/ld-vsb/visibility-1-xcoff-64.d: New test. * testsuite/ld-vsb/visibility-2-xcoff-32.d: New test. * testsuite/ld-vsb/visibility-2-xcoff-64.d: New test. * testsuite/ld-vsb/xcoffvsb.dat: New test.
25 lines
672 B
Plaintext
25 lines
672 B
Plaintext
mainvar == 1
|
|
overriddenvar == 2
|
|
shlibvar1 == 3
|
|
shlib_mainvar () == 1
|
|
shlib_shlibvar1 () == 3
|
|
shlib_shlibvar2 () == 4
|
|
shlib_shlibcall () == 5
|
|
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
|