[Bug gas/20803] Sparc R_SPARC_32 reloc with miss-align offset.

2017-03-30 Thread chrisj at rtems dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20803

--- Comment #6 from Chris Johns  ---
(In reply to Chris Johns from comment #5)
> I have just tested binutils 2.27 with the patch and 2.28 that contains this
> patch and the issue is back. The reloc details from readelf are:

This was a bug in the RTEMS ELF loader. I am sorry about the noise.

-- 
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/21334] [MIPS] Undefined hidden symbols cause assertion failure bfd/elfxx-mips.c:3860

2017-03-30 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21334

James Cowgill  changed:

   What|Removed |Added

 CC||ma...@linux-mips.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/21334] [MIPS] Undefined hidden symbols cause assertion failure bfd/elfxx-mips.c:3860

2017-03-30 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21334

James Cowgill  changed:

   What|Removed |Added

 CC||hobbitalastair at yandex 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 ld/21334] [MIPS] Undefined hidden symbols cause assertion failure bfd/elfxx-mips.c:3860

2017-03-30 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21334

James Cowgill  changed:

   What|Removed |Added

 Target||mips*-*-*

-- 
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/21334] New: [MIPS] Undefined hidden symbols cause assertion failure bfd/elfxx-mips.c:3860

2017-03-30 Thread james410 at cowgill dot org.uk
https://sourceware.org/bugzilla/show_bug.cgi?id=21334

Bug ID: 21334
   Summary: [MIPS] Undefined hidden symbols cause assertion
failure bfd/elfxx-mips.c:3860
   Product: binutils
   Version: 2.28
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: james410 at cowgill dot org.uk
  Target Milestone: ---

Originally from the Debian supermin package:
https://buildd.debian.org/status/fetch.php?pkg=supermin&arch=mipsel&ver=5.1.17-7%2Bb1&stamp=1490538317&raw=0

And possibly related to a bug mentioned in PR/21233

Attempting to link any object containing an undefined hidden symbol causes ld
to give an assertion failure.

$ cat test.c
extern int a __attribute__((visibility("hidden")));

int x(void)
{
a = 1;
}

$ mipsel-linux-gnu-gcc -c test.c
$ readelf --syms test.o
Symbol table '.symtab' contains 14 entries:
   Num:Value  Size TypeBind   Vis  Ndx Name
 0:  0 NOTYPE  LOCAL  DEFAULT  UND
 1:  0 FILELOCAL  DEFAULT  ABS test.c
 2:  0 SECTION LOCAL  DEFAULT1
 3:  0 SECTION LOCAL  DEFAULT3
 4:  0 SECTION LOCAL  DEFAULT4
 5:  0 SECTION LOCAL  DEFAULT9
 6:  0 SECTION LOCAL  DEFAULT5
 7:  0 SECTION LOCAL  DEFAULT6
 8:  0 SECTION LOCAL  DEFAULT7
 9:  0 SECTION LOCAL  DEFAULT   10
10:  0 SECTION LOCAL  DEFAULT   11
11: 60 FUNCGLOBAL DEFAULT1 x
12:  0 OBJECT  GLOBAL DEFAULT  UND _gp_disp
13:  0 NOTYPE  GLOBAL HIDDEN   UND a
$ ../build-mips/ld/ld-new test.o
../build-mips/ld/ld-new: warning: cannot find entry symbol __start; defaulting
to 004000f0
../build-mips/ld/ld-new: BFD (GNU Binutils) 2.28.51.20170330 assertion fail
../../binutils-gdb/bfd/elfxx-mips.c:3860
test.o: In function `x':
test.c:(.text+0x18): undefined reference to `a'

The bug in supermin was actually caused by musl's use of this feature in
__libc_start_main, so I suspect that nothing will be able to link against musl
libc when using binutils 2.28.

-- 
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 gas/21333] s390x GNU as uses symbol relocations for .debug_info

2017-03-30 Thread rguenth at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21333

Richard Biener  changed:

   What|Removed |Added

 Target||s390x

-- 
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 gas/21333] New: s390x GNU as uses symbol relocations for .debug_info

2017-03-30 Thread rguenth at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=21333

Bug ID: 21333
   Summary: s390x GNU as uses symbol relocations for .debug_info
   Product: binutils
   Version: 2.27
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

I see

Relocation section '.rela.debug_info' at offset 0xf460 contains 852 entries:
  Offset  Info   Type   Sym. ValueSym. Name +
Addend
0006  001d0004 R_390_32   .debug_abbrev + 0
000c  006d0004 R_390_32  0d9a .LASF336 + 0
0011  006e0004 R_390_32  001c .LASF337 + 0
0015  006f0004 R_390_32  069a .LASF338 + 0
0019  0024 R_390_32   .debug_ranges +
570
0025  00210004 R_390_32   .debug_line + 0
002a  0074 R_390_32  003d .LASF8 + 0
003c  00710004 R_390_32  05ab .LASF0 + 0
004a  00720004 R_390_32  0260 .LASF1 + 0
0051  00730004 R_390_32  06f3 .LASF2 + 0
0058  00740004 R_390_32  035b .LASF3 + 0

instead of

0058  00740004 R_390_32   .debug_str + 35b

that needlessly increases .symtab size plus it confuses elflint (tools/21332).

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