DWARF: Check version >= 3 for DW_FORM_ref_addr
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Mar 2021 01:34:38 +0000 (18:34 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Mar 2021 01:34:48 +0000 (18:34 -0700)
commit51f6e7a9f4210aed0f8156c1d2e348de6f96f37d
tree46e67b86dcd68881082f402958821056ab2e5d5b
parentfb099b8a51906d2189e8f1ba4dcda1f85ff0a78d
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.
bfd/ChangeLog
bfd/dwarf2.c
ld/ChangeLog
ld/testsuite/ld-x86-64/pr27587.err [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr27587a.obj.bz2 [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr27587b.obj.bz2 [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp