[PATCH 4/4] ld: add hidden and internal visibility support for XCOFF

CHIGOT, CLEMENT clement.chigot@atos.net
Mon Jan 3 13:23:13 GMT 2022


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-ld-add-hidden-and-internal-visibility-support-for-XC.patch
Type: application/octet-stream
Size: 20310 bytes
Desc: 0004-ld-add-hidden-and-internal-visibility-support-for-XC.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20220103/2753ddf2/attachment-0001.obj>


More information about the Binutils mailing list