https://sourceware.org/bugzilla/show_bug.cgi?id=26080
Bug ID: 26080 Summary: Incorrect "Common symbol override test" Product: binutils Version: 2.35 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com CC: ma...@linux-mips.org Target Milestone: --- comm-data2.s of "Common symbol override test" has --- .text .globl _start .globl __start _start: __start: .ifdef HPUX foo .comm 4 .else .comm foo, 4, 4 .endif .section .debug_foo,"",%progbits .balign 16 .ifdef ELF64 .8byte foo .else .4byte foo .endif .balign 16 --- foo is referenced from a debug section which has no impact on run-time behavior. When resolving such relocations, linker should never generate dynamic relocations and ignore any relocation errors for such relocations. But comm-data2r.rd has Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 1 entry: +Offset +Info +Type +Sym\.Value +Sym\. Name \+ Addend 0*12340000 +[0-9a-f]+ +R_.*_COPY +0*12340000 +foo \+ 0 -- You are receiving this mail because: You are on the CC list for the bug.