diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-07-02 13:08:09 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-07-02 13:08:09 -0700 |
commit | b638b5d57fafc84a8dc0ff91d7579a3c24aad90c (patch) | |
tree | f4663f1aba02dfe318906ed1f925b2c362a78842 /ld/testsuite/ld-x86-64/pr23324a.d | |
parent | eac61af65bcd24a48633da375527eb3f36ab47ed (diff) | |
download | gdb-b638b5d57fafc84a8dc0ff91d7579a3c24aad90c.zip gdb-b638b5d57fafc84a8dc0ff91d7579a3c24aad90c.tar.gz gdb-b638b5d57fafc84a8dc0ff91d7579a3c24aad90c.tar.bz2 |
x86-64: Clear the R_X86_64_converted_reloc_bit bit
We need to clear the R_X86_64_converted_reloc_bit bit after setting it
to avoid leaking it out by --emit-relocs.
bfd/
PR ld/23324
* elf64-x86-64.c (elf_x86_64_relocate_section): Clear the
R_X86_64_converted_reloc_bit bit.
ld/
PR ld/23324
* testsuite/ld-x86-64/pr23324.s: New file.
* testsuite/ld-x86-64/pr23324a.d: Likewise.
* testsuite/ld-x86-64/pr23324b.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr23324a.d')
-rw-r--r-- | ld/testsuite/ld-x86-64/pr23324a.d | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr23324a.d b/ld/testsuite/ld-x86-64/pr23324a.d new file mode 100644 index 0000000..72a4742 --- /dev/null +++ b/ld/testsuite/ld-x86-64/pr23324a.d @@ -0,0 +1,8 @@ +#source: pr23324.s +#as: --64 -mrelax-relocations=yes +#ld: -q -melf_x86_64 -pie +#readelf: -r --wide + +Relocation section '.rela.text' at offset 0x[0-9a-f]+ contains 1 entry: + +Offset +Info +Type +Sym.* Value +Symbol's Name \+ Addend +[0-9a-f]+ +[0-9a-f]+ +R_X86_64_PC32 +[0-9a-f]+ +_start - 4 |