[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-16 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #15 from cvs-commit at gcc dot gnu.org --- The binutils-2_28-branch branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8a3cacb06d6ecfbe3ab0e0059bf6a4eb8b4b9dc6 commit 8a3cacb06d6ecf

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-16 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 Alan Modra changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-16 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #14 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=247d6c4c14769b7576d810a381a68e35388ee874 commit 247d6c4c14769b7576d810a381a6

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-16 Thread dave.anglin at bell dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #13 from dave.anglin at bell dot net --- Excellent. The patch fixes the ffmpeg build which started this excursion. Thus I believe the patch can be committed to trunk and active branches. -- John David Anglin dave.ang...@bel

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-16 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #12 from Alan Modra --- The remaining failures are a testsuite problem. ld/testsuite/ld-elf/check-ptr-eq.c fails for hppa, since function pointers may point at plabels. It isn't valid to cast two function pointers to void* and th

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-15 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #11 from Alan Modra --- I suspect the reason is that when building shared libraries you'd only hit the code I'm patching if the symbol involved had been forced local, for instance, was hidden visibility. -- You are receiving this

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-15 Thread danglin at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #10 from John David Anglin --- The patch fixes the trivial test case. We are down to the following ld failures on trunk: Running /home/dave/gnu/binutils/src/ld/testsuite/ld-elf/indirect.exp ... FAIL: Run with libpr18720c.so 1 FAI

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-15 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 Alan Modra changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-14 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #8 from Alan Modra --- Ignore any mention of ifunc in the last comment. It's simply just not enough plt relocs. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-14 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #7 from Alan Modra --- It looks like this is a problem with ifunc. If I link with -z nocombreloc to keep dynamic relocs in separate sections, then I see Relocation section '.rela.got' at offset 0x314 contains 20 entries: Offset

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-14 Thread danglin at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #6 from John David Anglin --- Looking further, I have concluded $global$ and %r19 are set correctly. The relocations for .Lpmain: .word P%main .Lp__libc_start_main: .word P%__libc_start_main .Lp__libc_csu_fini:

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-14 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #5 from Alan Modra --- Hang on, emulparams/hppaelf.sh and scripttempl/hppaelf.sc are only used for hppa*-*-*elf* and hppa*-*-lites* (whatever that is) which don't even support shared libraries let alone pies. -- You are receiving

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-14 Thread dave.anglin at bell dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #4 from dave.anglin at bell dot net --- On 2017-02-14, at 9:41 PM, amodra at gmail dot com wrote: > Now that we do define $global$ in elf32_hppa_set_gp, the DATA_START_SYMBOLS > define should disappear, probably. I'll leave that p

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-14 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 Alan Modra changed: What|Removed |Added CC||amodra at gmail dot com --- Comment #3 f

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-13 Thread danglin at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #2 from John David Anglin --- Actually, it appears $global$ is incorrectly set in scripttempl/elf.sc. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug

[Bug ld/21132] [hppa-linux] pie support doesn't work

2017-02-13 Thread danglin at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21132 --- Comment #1 from John David Anglin --- It appears $global$ is set to the wrong value in elf32_hppa_set_gp() for -pie. -- You are receiving this mail because: You are on the CC list for the bug.