https://sourceware.org/bugzilla/show_bug.cgi?id=26236
Bug ID: 26236 Summary: ld on sparc produces R_SPARC_NONE relocations Product: binutils Version: 2.34 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: slyfox at inbox dot ru Target Milestone: --- Target: sparc-unknown-linux-gnu Initially the problem was observed by Rolf Eike Beer on elfutils as https://bugs.gentoo.org/619706. There elutils test suite caught that ld produces R_SPARC_NONE relocations on PIE executables. Attaching small archive with 3 object files hopefully enough to reproduce the problem. """ $ sparc-unknown-linux-gnu-ld -m elf32_sparc -pie -o a crtbeginS.o a.o crtend.o -e main sparc-unknown-linux-gnu-ld: warning: creating a DT_TEXTREL in object $ LANG=C sparc-unknown-linux-gnu-readelf -r a Relocation section '.rela.dyn' at offset 0x1e8 contains 9 entries: Offset Info Type Sym.Value Sym. Name + Addend 0001205c 00000016 R_SPARC_RELATIVE 1205c 00000000 00000000 R_SPARC_NONE 0 00000000 00000000 R_SPARC_NONE 0 00000000 00000000 R_SPARC_NONE 0 0000049c 00000109 R_SPARC_HI22 00000260 .init + 11f44 000004a0 0000010c R_SPARC_LO10 00000260 .init + 11f44 0001200c 00000314 R_SPARC_GLOB_DAT 00000000 __cxa_finalize + 0 00012014 00000414 R_SPARC_GLOB_DAT 00000000 _ITM_registerTMCloneTa + 0 00012018 00000514 R_SPARC_GLOB_DAT 00000000 _ITM_deregisterTMClone + 0 Relocation section '.rela.plt' at offset 0x254 contains 1 entry: Offset Info Type Sym.Value Sym. Name + Addend 0001204c 00000315 R_SPARC_JMP_SLOT 00000000 __cxa_finalize + 0 """ -- You are receiving this mail because: You are on the CC list for the bug.