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
2024-07-26 15:24:20 +09:30
2023-11-10 11:37:27 +00:00
2024-04-24 12:45:04 +01:00
2024-04-24 12:45:04 +01:00
2025-08-11 12:34:20 -07:00
2025-08-12 06:34:40 -07:00
2025-08-12 06:34:40 -07:00
2025-08-12 06:34:40 -07:00
2023-08-02 12:06:23 +01: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
2025-02-21 10:22:50 +01:00
2025-02-21 10:22:50 +01:00
2025-02-21 10:24:50 +01:00
2025-02-21 10:24:50 +01:00
2025-02-21 10:24:50 +01:00
2025-03-05 12:50:54 +08:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2023-11-10 11:37:27 +00:00
2023-08-23 09:10:16 -07:00
2023-08-23 09:10:16 -07:00
2023-08-23 09:10:16 -07:00
2024-01-09 06:39:42 -08:00
2024-06-14 13:38:19 -07:00
2024-06-14 13:38:19 -07:00
2024-06-14 13:38:19 -07:00
2024-09-26 19:43:08 +08:00
2025-08-12 06:34:40 -07:00
2025-08-12 06:34:40 -07:00
2025-08-12 06:34:40 -07:00
2025-08-09 08:56:43 -07:00
2024-08-10 07:26:40 -07:00
2025-01-01 18:29:57 +10:30
2024-09-21 05:19:16 +08:00
2024-07-25 12:40:19 -07:00
2024-09-21 05:19:16 +08:00
2024-08-28 05:56:25 -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-08-28 22:19:38 +09:30
2024-08-27 13:16:40 -07:00