[Bug ld/18421] hppa/parisc ld: read-only segment has dynamic relocations
https://sourceware.org/bugzilla/show_bug.cgi?id=18421 --- Comment #6 from Alan Modra --- Created attachment 8319 --> https://sourceware.org/bugzilla/attachment.cgi?id=8319&action=edit glibc fix This should fix it, but I'm too rusty on hppa to be trusted. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/18421] hppa/parisc ld: read-only segment has dynamic relocations
https://sourceware.org/bugzilla/show_bug.cgi?id=18421 Alan Modra changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #5 from Alan Modra --- I built myself a new toolchain. The problem relocations in the binary are these: 0670 0d02 R_PARISC_DIR21L10f4 $global$ + 0 0674 0d06 R_PARISC_DIR14R10f4 $global$ + 0 0b98 0b41 R_PARISC_PLABEL32 08a4 main + 0 0b9c 0741 R_PARISC_PLABEL32 __libc_start_main@GLIBC_2.2 + 0 0ba0 0241 R_PARISC_PLABEL32 0aa4 __libc_csu_fini + 0 0ba4 0841 R_PARISC_PLABEL32 09f8 __libc_csu_init + 0 They come from Scrt1.o which looks like it isn't PIC. Not a linker problem, but a glibc one. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/18421] hppa/parisc ld: read-only segment has dynamic relocations
https://sourceware.org/bugzilla/show_bug.cgi?id=18421 --- Comment #4 from dave.anglin at bell dot net --- On 2015-05-16, at 7:05 AM, deller at gmx dot de wrote: > Output of: > readelf -r conftest > > Relocation section '.rela.PARISC.unwind' at offset 0x140 contains 2 entries: > Offset InfoTypeSym.Value Sym. Name + Addend > 0131 R_PARISC_SEGREL32 .text + 0 > 0004 0131 R_PARISC_SEGREL32 .text + 18 Possibly, this has to do with following lines in emulparams/hppalinux.sh: OTHER_READONLY_SECTIONS=" .PARISC.unwind ${RELOCATING-0} : { *(.PARISC.unwind) }" -- John David Anglin dave.ang...@bell.net -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/18421] hppa/parisc ld: read-only segment has dynamic relocations
https://sourceware.org/bugzilla/show_bug.cgi?id=18421 --- Comment #3 from Helge Deller --- (In reply to Alan Modra from comment #2) > From a quick glance over elf32-hppa.c it looks to me like R_PARISC_SEGREL32 > indeed should not be made dynamic. So I'm wondering if debian hppa-ld has > some added "features"? I don't think so. Debian's binutils 2.25-7 seems to just add (in branch-updates.diff) the updates from the binutils-2.25 branch like this: git diff 15a2e5b3fab5543c499a58783d9562c0c973fc1f 882033c14f4bb18fc8513bc27a4e25cd699633d2 exclude bfd/{configure{,.ac},Makefile.{am,in}} which includes this diff: diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c index 0588ebb..abc7124 100644 --- a/bfd/elf32-hppa.c +++ b/bfd/elf32-hppa.c @@ -1915,7 +1915,7 @@ elf32_hppa_adjust_dynamic_symbol (struct bfd_link_info *info, sec = htab->sdynbss; - return _bfd_elf_adjust_dynamic_copy (eh, sec); + return _bfd_elf_adjust_dynamic_copy (info, eh, sec); } /* Allocate space in the .plt for entries that won't have relocations. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/18421] hppa/parisc ld: read-only segment has dynamic relocations
https://sourceware.org/bugzilla/show_bug.cgi?id=18421 Alan Modra changed: What|Removed |Added CC||amodra at gmail dot com --- Comment #2 from Alan Modra --- I tried to recreate this using an old hppa gcc I had (from 2001, it's been a long time!) gcc/xgcc -Bgcc/ -S conftest.c ~/build/gas/hppa-linux/gas/as-new -o conftest.o conftest.s ~/build/gas/hppa-linux/ld/ld-new -o conftest -z text -pie -o conftest conftest.o The link succeeded, no sign of dynamic relocations in .PARISC.unwind. readelf shows the expected R_PARISC_SEGREL32 relocs in conftest.o. >From a quick glance over elf32-hppa.c it looks to me like R_PARISC_SEGREL32 indeed should not be made dynamic. So I'm wondering if debian hppa-ld has some added "features"? -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/18421] hppa/parisc ld: read-only segment has dynamic relocations
https://sourceware.org/bugzilla/show_bug.cgi?id=18421 --- Comment #1 from Helge Deller --- This bug shows up when trying to compile iceweasel on debian/hppa with the -pie compiler option. Full log is here: http://buildd.debian-ports.org/status/fetch.php?pkg=iceweasel&arch=hppa&ver=38.0-1&stamp=1431559094 -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils