diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-03-18 18:34:38 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-03-18 18:34:48 -0700 |
commit | 51f6e7a9f4210aed0f8156c1d2e348de6f96f37d (patch) | |
tree | 46e67b86dcd68881082f402958821056ab2e5d5b /ld/testsuite/ld-x86-64/x86-64.exp | |
parent | fb099b8a51906d2189e8f1ba4dcda1f85ff0a78d (diff) | |
download | gdb-51f6e7a9f4210aed0f8156c1d2e348de6f96f37d.zip gdb-51f6e7a9f4210aed0f8156c1d2e348de6f96f37d.tar.gz gdb-51f6e7a9f4210aed0f8156c1d2e348de6f96f37d.tar.bz2 |
DWARF: Check version >= 3 for DW_FORM_ref_addr
Check version >= 3, instead of version == 3 || version == 4, for
DW_FORM_ref_addr.
bfd/
PR ld/27587
* dwarf2.c (read_attribute_value): Check version >= 3 for
DW_FORM_ref_addr.
ld/
PR ld/27587
* testsuite/ld-x86-64/pr27587.err: New file.
* testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
* testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
Diffstat (limited to 'ld/testsuite/ld-x86-64/x86-64.exp')
-rw-r--r-- | ld/testsuite/ld-x86-64/x86-64.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index 232c9df..db3bd14 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -221,6 +221,11 @@ set x86_64tests { "-melf_x86_64 -pie -z notext tmpdir/pr20550a.o tmpdir/pr20550b.so" "" "--64" { dummy.s } {} "pr20550"} + {"Build pr27587" + "-melf_x86_64 -e main" + "" "" + { pr27587a.obj.bz2 pr27587b.obj.bz2 } + {{ld "pr27587.err"}} "pr27587"} } run_ld_link_tests $x86_64tests |