Files
binutils-gdb/ld/testsuite/ld-i386
H.J. Lu 55c91b7e5c x86: Always treat protected symbols as local
Since linker never generates dynamic relocation for protected symbol in:

__attribute__((visibility("protected"))) int my_data;

int *
func (void)
{
  return &my_data;
}

we should always treat protected symbols as local.

bfd/

	PR ld/33260
	* elfxx-x86.h (COPY_INPUT_RELOC_P): Always treat protected symbols
	as local.

ld/

	PR ld/33260
	* testsuite/ld-i386/i386-export-class.rd: Updated.
	* testsuite/ld-i386/i386-export-class.xd: Likewise.
	* testsuite/ld-i386/i386.exp: Run pr33260-2.
	* testsuite/ld-i386/pr33260-2.d: New file.
	* testsuite/ld-i386/pr33260-2.s: Likewise.
	* testsuite/ld-i386/pr33260.d: Remove "-z indirect-extern-access".
	* testsuite/ld-x86-64/pr33260-x32.d: Likewise.
	* testsuite/ld-x86-64/pr33260.d: Likewise.
	* testsuite/ld-x86-64/pr33260-2-x32.d: New file.
	* testsuite/ld-x86-64/pr33260-2.d: Likewise.
	* testsuite/ld-x86-64/pr33260-2.s: Likewise.
	* testsuite/ld-x86-64/x86-64-64-export-class.rd: Updated.
	* testsuite/ld-x86-64/x86-64-x32-export-class.rd: Likewise.
	* testsuite/ld-x86-64/x86-64.exp: Run pr33260-2 and
	pr33260-2-x32.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
2025-08-12 06:34:40 -07:00
..
2023-08-02 12:06:23 +01:00
2025-02-21 10:26:59 +01:00
2025-02-21 10:26:59 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2024-08-10 07:26:40 -07:00
2024-09-21 05:19:16 +08:00
2024-09-21 05:19:16 +08:00
2024-09-21 05:19:16 +08:00
2024-09-21 05:19:16 +08:00
2024-09-21 05:19:16 +08:00
2024-09-21 05:19:16 +08:00
2024-09-21 05:19:16 +08:00
2024-08-27 13:16:40 -07:00