[Bug ld/21017] [microblaze] ld fails with missing _GLOBAL_OFFSET_TABLE_ symbol when all relocs are @GOTOFF

2017-01-02 Thread wbx at openadk dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21017

wbx at openadk dot org changed:

   What|Removed |Added

 CC||wbx at openadk dot org

-- 
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/21017] [microblaze] ld fails with missing _GLOBAL_OFFSET_TABLE_ symbol when all relocs are @GOTOFF

2017-01-02 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=21017

--- Comment #1 from Rich Felker  ---
Created attachment 9735
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9735=edit
patch to fix the bug

This seems to fix the issue, but there may be additional reloc types that
should be checked to fully fix it.

-- 
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/21017] New: [microblaze] ld fails with missing _GLOBAL_OFFSET_TABLE_ symbol when all relocs are @GOTOFF

2017-01-02 Thread bugdal at aerifal dot cx
https://sourceware.org/bugzilla/show_bug.cgi?id=21017

Bug ID: 21017
   Summary: [microblaze] ld fails with missing
_GLOBAL_OFFSET_TABLE_ symbol when all relocs are
@GOTOFF
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: bugdal at aerifal dot cx
  Target Milestone: ---

When linking a program where all GOT-based relocations are GOT-relative rather
than GOT slots, create_got_section is never called and linking fails due to
missing _GLOBAL_OFFSET_TABLE_ symbol. This was found to happen when static
linking non-PIC code with musl libc's crt1 which contains (gratuitous for
non-pie, but not erroneous) logic to compute the address of _DYNAMIC if it's
defined, but it probably can also happen in other situations where most object
files are non-PIC but one contains PIC code with only GOT-relative 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/21000] hppa-linux does not support -z relro

2017-01-02 Thread dave.anglin at bell dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=21000

--- Comment #10 from dave.anglin at bell dot net ---
On 2017-01-02, at 8:56 AM, amodra at gmail dot com wrote:

> Some of the fails should now be fixed.  I trust there were no regressions on a
> native build?  Incidentally, latest glibc doesn't build on hppa-linux due to
> https://sourceware.org/ml/libc-alpha/2016-05/msg00605.html

I don't believe there were any regressions.   Will retest ,

I believe the glibc issue must be fixed as I had successful builds in the
latter part of
last October when I was hacking on it.

Happy New Years,
Dave
--
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/21000] hppa-linux does not support -z relro

2017-01-02 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21000

--- Comment #8 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=f5657270bd9353db74ba802ebed62b7133f7c2a0

commit f5657270bd9353db74ba802ebed62b7133f7c2a0
Author: Alan Modra 
Date:   Mon Jan 2 22:33:47 2017 +1030

Support -z relro on hppa

PR ld/21000
* emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
(DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
* scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
is already defined.

-- 
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/14525] __executable_start isn't defined for PIE

2017-01-02 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=14525

--- Comment #5 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=595e0a47f57b414843261303b8aa5036fd1fa1e3

commit 595e0a47f57b414843261303b8aa5036fd1fa1e3
Author: Alan Modra 
Date:   Mon Jan 2 22:31:27 2017 +1030

Don't make symbols dynamic other than undef weak

Fixes: tmpdir/pr14525: symbol lookup error: tmpdir/pr14525: undefined
symbol: __executable_start
FAIL: PIE PR ld/14525

* elf32-hppa.c (ensure_undef_weak_dynamic): New function.
(allocate_plt_static, allocate_dynrelocs): Use it.

-- 
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/20989] Every 64-bit Solaris 12/SPARC executable dies with SIGILL

2017-01-02 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20989

Alan Modra  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC|amodra at gmail dot com|
 Resolution|--- |FIXED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
   Target Milestone|--- |2.28

--- Comment #7 from Alan Modra  ---
Fixed

-- 
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/20989] Every 64-bit Solaris 12/SPARC executable dies with SIGILL

2017-01-02 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20989

--- Comment #6 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=567e353f0e5d192b04f6b79e73dc14c5a74983c5

commit 567e353f0e5d192b04f6b79e73dc14c5a74983c5
Author: Alan Modra 
Date:   Mon Jan 2 22:06:28 2017 +1030

PR20989, sparc GOT sequence optimisation

PR ld/20989
* elfxx-sparc.c (gdop_relative_offset_ok): New function.
(_bfd_sparc_elf_relocate_section): Use it to validate GOT
indirect to GOT pointer relative code edit.

-- 
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/20989] Every 64-bit Solaris 12/SPARC executable dies with SIGILL

2017-01-02 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20989

--- Comment #5 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=5b86074c4a84e32ca55a6c72c5fca45d97dc9374

commit 5b86074c4a84e32ca55a6c72c5fca45d97dc9374
Author: Alan Modra 
Date:   Mon Jan 2 22:06:28 2017 +1030

PR20989, sparc GOT sequence optimisation

PR ld/20989
* elfxx-sparc.c (gdop_relative_offset_ok): New function.
(_bfd_sparc_elf_relocate_section): Use it to validate GOT
indirect to GOT pointer relative code edit.

-- 
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