https://sourceware.org/bugzilla/show_bug.cgi?id=33202
Bug ID: 33202
Summary: ld-gc/all-debug-sections.d FAILs on 64-bit
Solaris/SPARC
Product: binutils
Version: 2.46 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: ro at gcc dot gnu.org
Target Milestone: ---
Target: sparcv9-sun-solaris2.11
There's one ld testsuite failure on 64-bit Solaris/SPARC only:
FAIL: --gc-sections with multiple debug sections for a function section
The test is from ld-gc/all-debug-sections.d and fails like so:
./ld-new -z norelro -z nomemory-seal
-L/vol/src/gnu/binutils/hg/master/local/ld/testsuite/ld-gc --gc-sections -e
_start -o tmpdir/dump tmpdir/all-debug-sections.o
tmpdir/all-debug-sections.o: in function `debug_info_main':
(.debug_info.text.main+0x4): relocation truncated to fit: R_SPARC_32 against
symbol `main' defined in .text.main section in tmpdir/all-debug-sections.o
tmpdir/all-debug-sections.o: in function `debug_aranges_main':
(.debug_aranges.text.main+0x4): relocation truncated to fit: R_SPARC_32 against
symbol `main' defined in .text.main section in tmpdir/all-debug-sections.o
tmpdir/all-debug-sections.o: in function `debug_line_main':
(.debug_line.text.main+0x4): relocation truncated to fit: R_SPARC_32 against
symbol `main' defined in .text.main section in tmpdir/all-debug-sections.o
It passes on Linux/sparc64, though (which has the same relocs against main
AFAICS)
000000000000 001700000003 R_SPARC_32 0000000000000000 main + 0
Relocation section '.rela.debug_info.text.main' at offset 0x358 contains 1
entry:
000000000004 001700000003 R_SPARC_32 0000000000000000 main + 0
Relocation section '.rela.debug_aranges.text.main' at offset 0x388 contains 1
entry:
000000000004 001700000003 R_SPARC_32 0000000000000000 main + 0
Relocation section '.rela.debug_line.text.main' at offset 0x3b8 contains 1
entry:
000000000004 001700000003 R_SPARC_32 0000000000000000 main + 0
and *does* link with /bin/ld on Solaris:
/bin/ld --gc-sections -e _start -o tmpdir/dump tmpdir/all-debug-sections.o
--
You are receiving this mail because:
You are on the CC list for the bug.