b2064611d4
Fix PR ld/3290 regression for cross-files DW_FORM_ref_addr relocations. * elflink.c (elf_link_add_object_symbols): Make debug symbols local now only for non-RELOCATABLE targets. ld/testsuite/ * ld-x86-64/dwarfreloc.exp, ld-x86-64/dwarfreloc.rd, ld-x86-64/dwarfreloc1.s, ld-x86-64/dwarfreloc2.s: New test.
17 lines
424 B
R
17 lines
424 B
R
# Parenthesized `(...)' is the offset we cross-check.
|
|
# The third parenthesized value was left unrelocated (0x0) before.
|
|
#...
|
|
.*Abbrev Number: .* \(DW_TAG_variable\).*
|
|
#...
|
|
.*DW_AT_type *: *<0x(32)>.*
|
|
#...
|
|
.*<(32)>: Abbrev Number: .* \(DW_TAG_base_type\).*
|
|
#...
|
|
.*Compilation Unit.*
|
|
#...
|
|
.*Abbrev Number: .* \(DW_TAG_compile_unit\).*
|
|
#...
|
|
.*Abbrev Number: .* \(DW_TAG_variable\).*
|
|
#...
|
|
.*DW_AT_type : <0x(32)>.*
|
|
#...
|