diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-01-12 10:30:56 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-01-12 10:32:17 -0800 |
commit | 8361ed4d6b7049264153434e8dc15e6dc2200ebf (patch) | |
tree | 12ec4f05453db4b68a7136a96375ee2b96dacf4a /ld/testsuite/ld-x86-64/pr21038c.s | |
parent | 2425a30e406a0523020b7e70abb864a06a45bb97 (diff) | |
download | gdb-8361ed4d6b7049264153434e8dc15e6dc2200ebf.zip gdb-8361ed4d6b7049264153434e8dc15e6dc2200ebf.tar.gz gdb-8361ed4d6b7049264153434e8dc15e6dc2200ebf.tar.bz2 |
x86-64: Also generate unwind info for .plt.bnd
Also generate unwind info for the .plt.bnd section. Sine it is the same
as unwind info for the .plt.got section, we use unwind info for the
.plt.got section to cover the the .plt.bnd section.
bfd/
PR ld/21038
* elf64-x86-64.c (elf_x86_64_link_hash_table): Add
plt_bnd_eh_frame.
(elf_x86_64_check_relocs): Create .eh_frame section for the
.plt.bnd section.
(elf_x86_64_size_dynamic_sections): Allocate and initialize
.eh_frame section for the .plt.bnd section.
(elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
for the .plt.bnd section.
ld/
PR ld/21038
* testsuite/ld-x86-64/pr21038b.d: Updated.
* testsuite/ld-x86-64/pr21038c.d: New file.
* testsuite/ld-x86-64/pr21038c.s: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr21038c.s')
-rw-r--r-- | ld/testsuite/ld-x86-64/pr21038c.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr21038c.s b/ld/testsuite/ld-x86-64/pr21038c.s new file mode 100644 index 0000000..38fc10d --- /dev/null +++ b/ld/testsuite/ld-x86-64/pr21038c.s @@ -0,0 +1,9 @@ + .text + .globl foo + .type foo, @function +foo: + .cfi_startproc + call func1@plt + call func2@plt + movq func1@GOTPCREL(%rip), %rax + .cfi_endproc |