[Bug binutils/20748] microblaze: generates broken binaries for Linux

2016-10-30 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20748

--- Comment #7 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_27-branch branch has been updated by Alan Modra
:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3645ea6fd34663b4d95042c1bfb438e80f4702f2

commit 3645ea6fd34663b4d95042c1bfb438e80f4702f2
Author: Alan Modra 
Date:   Mon Oct 31 12:46:38 2016 +1030

Revert part "Set dynamic tag VMA and size from dynamic section when
possible"

PR 20748
* elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Revert
2016-05-13 change.

-- 
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 binutils/20748] microblaze: generates broken binaries for Linux

2016-10-30 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20748

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED
   Assignee|unassigned at sourceware dot org   |amodra at gmail dot com

--- Comment #6 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 binutils/20748] microblaze: generates broken binaries for Linux

2016-10-30 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20748

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

commit c646b02fdcae5f37bd88f33a0c4683ef13ad5c82
Author: Alan Modra 
Date:   Mon Oct 31 12:46:38 2016 +1030

Revert part "Set dynamic tag VMA and size from dynamic section when
possible"

PR 20748
* elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Revert
2016-05-13 change.

-- 
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 binutils/20748] microblaze: generates broken binaries for Linux

2016-10-30 Thread wbx at openadk dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20748

--- Comment #4 from wbx at openadk dot org ---
The problem exist for musl, uClibc-ng and glibc based root filesystems.

-- 
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 binutils/20748] microblaze: generates broken binaries for Linux

2016-10-30 Thread wbx at openadk dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20748

wbx at openadk dot org changed:

   What|Removed |Added

Summary|microblaze: generates   |microblaze: generates
   |broken binaries for |broken binaries for Linux
   |Linux/musl  |

-- 
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 binutils/20748] microblaze: generates broken binaries for Linux/musl

2016-10-30 Thread wbx at openadk dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20748

wbx at openadk dot org changed:

   What|Removed |Added

 CC||amodra at gmail dot com

-- 
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 binutils/20748] microblaze: generates broken binaries for Linux/musl

2016-10-30 Thread wbx at openadk dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20748

--- Comment #3 from wbx at openadk dot org ---
diff between working and non-working:
--- libc.so.readelf 2016-10-30 16:12:27.851976927 +0100
+++ libc.so.readelf.good2016-10-30 16:45:54.121833285 +0100
@@ -70,8 +70,8 @@
  0x0006 (SYMTAB) 0x6430
  0x000a (STRSZ)  17442 (bytes)
  0x000b (SYMENT) 16 (bytes)
- 0x0007 (RELA)   0x0
- 0x0008 (RELASZ) 0 (bytes)
+ 0x0007 (RELA)   0x11ee4
+ 0x0008 (RELASZ) 20712 (bytes)
  0x0009 (RELAENT)12 (bytes)
  0x (NULL)   0x0

So RELA and RELASZ are zero.

-- 
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 binutils/20748] microblaze: generates broken binaries for Linux/musl

2016-10-30 Thread wbx at openadk dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20748

--- Comment #2 from wbx at openadk dot org ---
Created attachment 9603
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9603=edit
libc.so readily

-- 
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 binutils/20748] microblaze: generates broken binaries for Linux/musl

2016-10-30 Thread wbx at openadk dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20748

--- Comment #1 from wbx at openadk dot org ---
Created attachment 9602
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9602=edit
init readelf

-- 
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 gold/20749] New: gold does not support --orphan-handling

2016-10-30 Thread npiggin at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20749

Bug ID: 20749
   Summary: gold does not support --orphan-handling
   Product: binutils
   Version: 2.28 (HEAD)
Status: UNCONFIRMED
  Severity: enhancement
  Priority: P2
 Component: gold
  Assignee: ccoutant at gmail dot com
  Reporter: npiggin at gmail dot com
CC: ian at airs dot com
  Target Milestone: ---

-- 
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 binutils/20748] New: microblaze: generates broken binaries for Linux/musl

2016-10-30 Thread wbx at openadk dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20748

Bug ID: 20748
   Summary: microblaze: generates broken binaries for Linux/musl
   Product: binutils
   Version: 2.28 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: wbx at openadk dot org
  Target Milestone: ---

While testing newer versions of binutils I found a problem creating a usable
Linux root filesystem for Qemu/microblaze using musl C library.

I bisected binutils and following commit seems to break it:
commit 4ade44b727ee77adaa9c22719935d012e253a5e6
Author: Alan Modra 
Date:   Fri May 13 11:48:56 2016 +0930

Set dynamic tag VMA and size from dynamic section when possible

Rather than searching the output for a specific named section, it's
better, where possible, to use a linker created dynamic section to set
a dynamic tag's value.  That way ld doesn't depend on the output
section name, making it possibile to map dynamic sections differently.


On bootup in Qemu system I just get a kernel panic:
[1.353879] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x000b

any ideas? Do you need anything to reproduce?

-- 
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 binutils/20467] binutils gold target mipsel-elf fails to build when configuring with --enable-targets=mipsel-elf

2016-10-30 Thread vimacs.hacks at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20467

--- Comment #1 from vimacs.hacks at gmail dot com  ---
The following patch will fix this issue.

diff -urN binutils-2.27.orig/gold/configure.tgt
binutils-2.27/gold/configure.tgt
--- binutils-2.27.orig/gold/configure.tgt   2016-08-03 15:36:53.0
+0800
+++ binutils-2.27/gold/configure.tgt2016-10-29 19:28:56.140587026 +0800
@@ -157,6 +157,7 @@
  targ_obj=mips
  targ_machine=EM_MIPS_RS3_LE
  targ_size=32
+ targ_extra_size=64
  targ_big_endian=false
  targ_extra_big_endian=true
  ;;

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