Browse Source
Since elf_x86_linker_defined sets linker_def in elf_x86_link_hash_entry for linker defined symbols, SYMBOL_DEFINED_NON_SHARED_P should also check linker_def in elf_x86_link_hash_entry. bfd/ PR ld/24458 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86 linker_def. ld/ PR ld/24458 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests. * testsuite/ld-x86-64/pr24458.s: New file. * testsuite/ld-x86-64/pr24458a-x32.d: Likewise. * testsuite/ld-x86-64/pr24458a.d: Likewise. * testsuite/ld-x86-64/pr24458b-x32.d: Likewise. * testsuite/ld-x86-64/pr24458b.d: Likewise. * testsuite/ld-x86-64/pr24458c-x32.d: Likewise. * testsuite/ld-x86-64/pr24458c.d: Likewise.binutils-2_33-branch
11 changed files with 90 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||
.text |
|||
.globl _start |
|||
.type _start, @function |
|||
_start: |
|||
movq __ehdr_start(%rip), %rax |
|||
@ -0,0 +1,10 @@ |
|||
#source: pr24458.s |
|||
#as: --x32 -mx86-used-note=yes |
|||
#ld: -m elf32_x86_64 |
|||
#readelf: -n |
|||
|
|||
Displaying notes found in: .note.gnu.property |
|||
Owner Data size Description |
|||
GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0 |
|||
Properties: x86 ISA used: <None> |
|||
x86 feature used: x86 |
|||
@ -0,0 +1,10 @@ |
|||
#source: pr24458.s |
|||
#as: --64 -mx86-used-note=yes |
|||
#ld: -m elf_x86_64 |
|||
#readelf: -n |
|||
|
|||
Displaying notes found in: .note.gnu.property |
|||
Owner Data size Description |
|||
GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0 |
|||
Properties: x86 ISA used: <None> |
|||
x86 feature used: x86 |
|||
@ -0,0 +1,10 @@ |
|||
#source: pr24458.s |
|||
#as: --x32 -mx86-used-note=yes |
|||
#ld: -pie -m elf32_x86_64 |
|||
#readelf: -n |
|||
|
|||
Displaying notes found in: .note.gnu.property |
|||
Owner Data size Description |
|||
GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0 |
|||
Properties: x86 ISA used: <None> |
|||
x86 feature used: x86 |
|||
@ -0,0 +1,10 @@ |
|||
#source: pr24458.s |
|||
#as: --64 -mx86-used-note=yes |
|||
#ld: -pie -m elf_x86_64 |
|||
#readelf: -n |
|||
|
|||
Displaying notes found in: .note.gnu.property |
|||
Owner Data size Description |
|||
GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0 |
|||
Properties: x86 ISA used: <None> |
|||
x86 feature used: x86 |
|||
@ -0,0 +1,10 @@ |
|||
#source: pr24458.s |
|||
#as: --x32 -mx86-used-note=yes |
|||
#ld: -shared -m elf32_x86_64 |
|||
#readelf: -n |
|||
|
|||
Displaying notes found in: .note.gnu.property |
|||
Owner Data size Description |
|||
GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0 |
|||
Properties: x86 ISA used: <None> |
|||
x86 feature used: x86 |
|||
@ -0,0 +1,10 @@ |
|||
#source: pr24458.s |
|||
#as: --64 -mx86-used-note=yes |
|||
#ld: -shared -m elf_x86_64 |
|||
#readelf: -n |
|||
|
|||
Displaying notes found in: .note.gnu.property |
|||
Owner Data size Description |
|||
GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0 |
|||
Properties: x86 ISA used: <None> |
|||
x86 feature used: x86 |
|||
Loading…
Reference in new issue