[Bug binutils/14088] Strange addend from readelf

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

--- Comment #5 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_28-branch branch has been updated by Maciej W. Rozycki
:

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

commit 1d0d283e6bcc643c6ca96edd7ac4551e09d9975d
Author: Maciej W. Rozycki 
Date:   Wed Feb 1 22:09:33 2017 +

MIPS/LD/testsuite: Correct relocation addends in VxWorks tests

Fix commit 171191bac50e ("Add support for STT_IFUNC"),
, commit
e04d7088afe0 ("PR ld/14088: Always display addend as signed hex
number"),  and
commit 343dbc36ffae ("Print addend as signed in objdump"),
 regressions:

FAIL: VxWorks executable test 1 (dynamic)
FAIL: ld-mips-elf/vxworks-forced-local-1

seen with `mips-vxworks' and `mipsel-vxworks' targets and adjust dump
patterns according to changes made to the presentation of relocation
addends in `readelf -r' and `objdump -r' output.

ld/
* testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
presentation of relocation addends.
* testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
* testsuite/ld-mips-elf/vxworks1.dd: Likewise.
* testsuite/ld-mips-elf/vxworks1.rd: Likewise.

(cherry picked from commit c0c237fcdd133e84e67657cc6b7e4678f106bdcb)

-- 
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/14088] Strange addend from readelf

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

--- Comment #4 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Maciej W. Rozycki :

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

commit c0c237fcdd133e84e67657cc6b7e4678f106bdcb
Author: Maciej W. Rozycki 
Date:   Wed Feb 1 22:09:33 2017 +

MIPS/LD/testsuite: Correct relocation addends in VxWorks tests

Fix commit 171191bac50e ("Add support for STT_IFUNC"),
, commit
e04d7088afe0 ("PR ld/14088: Always display addend as signed hex
number"),  and
commit 343dbc36ffae ("Print addend as signed in objdump"),
 regressions:

FAIL: VxWorks executable test 1 (dynamic)
FAIL: ld-mips-elf/vxworks-forced-local-1

seen with `mips-vxworks' and `mipsel-vxworks' targets and adjust dump
patterns according to changes made to the presentation of relocation
addends in `readelf -r' and `objdump -r' output.

ld/
* testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
presentation of relocation addends.
* testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
* testsuite/ld-mips-elf/vxworks1.dd: Likewise.
* testsuite/ld-mips-elf/vxworks1.rd: Likewise.

-- 
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/21062] Building GCC in LTO mode fails when using ld.gold on AARCH64

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

--- Comment #3 from PeteVine  ---
That's a different issue, ld.gold never crashes in mine.

-- 
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/21062] Building GCC in LTO mode fails when using ld.gold on AARCH64

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

Edward Vielmetti  changed:

   What|Removed |Added

 CC||edward.vielmetti at gmail dot 
com

--- Comment #2 from Edward Vielmetti  ---
I'm seeing what I think is the same bug; it manifests itself building Swift on
aarch64 (96-core Packet 2A server, with a Cavium ThunderX CPU).

/usr/bin/ld.gold: internal error in relocate_tls, at ../../gold/aarch64.cc:7419

is the error message. Suggestions where to go to help report this more
carefully would be welcomed.

-- 
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/21096] gcc7 warnings

2017-02-01 Thread dilyan.palauzov at aegee dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21096

--- Comment #4 from dilyan.palauzov at aegee dot org  ---
It works, but there is one more warning:

make[4]: Entering directory '/home/d/binutils/opcodes'
/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I/git/binutils-gdb/opcodes  -I. -I/git/binutils-gdb/opcodes -I../bfd
-I/git/binutils-gdb/opcodes/../include -I/git/binutils-gdb/opcodes/../bfd-W
-Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144
-Werror -g -O2 -MT tic6x-dis.lo -MD -MP -MF .deps/tic6x-dis.Tpo -c -o
tic6x-dis.lo /git/binutils-gdb/opcodes/tic6x-dis.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/git/binutils-gdb/opcodes -I.
-I/git/binutils-gdb/opcodes -I../bfd -I/git/binutils-gdb/opcodes/../include
-I/git/binutils-gdb/opcodes/../bfd -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror -g -O2 -MT
tic6x-dis.lo -MD -MP -MF .deps/tic6x-dis.Tpo -c
/git/binutils-gdb/opcodes/tic6x-dis.c -o tic6x-dis.o
/git/binutils-gdb/opcodes/tic6x-dis.c: In function ‘print_insn_tic6x’:
/git/binutils-gdb/opcodes/tic6x-dis.c:706:32: error: ‘snprintf’ output may be
truncated before the last format character [-Werror=format-truncation=]
snprintf (func_unit_buf, 7, " .%c%u%s%s", func_unit_char,
^~~~
/git/binutils-gdb/opcodes/tic6x-dis.c:706:4: note: ‘snprintf’ output between 5
and 8 bytes into a destination of size 7
snprintf (func_unit_buf, 7, " .%c%u%s%s", func_unit_char,
^
   func_unit_side, (func_unit_cross ? "X" : ""), data_str);
   ~~~
cc1: all warnings being treated as errors
make[4]: *** [Makefile:1003: tic6x-dis.lo] Error 1
make[4]: Target 'all-am' not remade because of errors.

-- 
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/21090] gcc compiled with --enable-default-pie show errors in binutils testsuite

2017-02-01 Thread lksfbdij at 10mail dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21090

--- Comment #13 from Robert West  ---
Created attachment 9789
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9789=edit
binutils-git no-pie

-- 
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/21099] New: Strip should update symbol section index after some sections removed?

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

Bug ID: 21099
   Summary: Strip should update symbol section index after some
sections removed?
   Product: binutils
   Version: 2.29 (HEAD)
Status: NEW
  Severity: minor
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: jiwang at gcc dot gnu.org
  Target Milestone: ---

Can be reproduced by two commands:
===

ld --verbose | tac | sed '/^===/d' | sed '/using internal linker script/,$d' |
sed s/*\(.debug_line/_test\ =\ .\;\ *\(.debug_line/ | tac > new.ld

echo "int cal () { return 0; }" > test.c ; gcc -Wl,-T new.ld -g -shared test.c
-o libtest.so ; strip -s libtest.so ; readelf -s libtest.so | grep "_test"

-- 
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/21096] gcc7 warnings

2017-02-01 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21096

--- Comment #3 from Nick Clifton  ---
(In reply to Alan Modra from comment #2)
> Wouldn't it be better to remove this warning from Werror until and unless
> gcc can be fixed to not give so many false positives?

Overall I think that the warning is useful, and it will certainly help prevent
future bugs of this type.  The fixes I have proposed are quite simple, and
there are only four places where the binutils appear to be affected, so the
price seems quite small to me.

-- 
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/21096] gcc7 warnings

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

Alan Modra  changed:

   What|Removed |Added

 CC||amodra at gmail dot com

--- Comment #2 from Alan Modra  ---
Wouldn't it be better to remove this warning from Werror until and unless gcc
can be fixed to not give so many false positives?

-- 
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/21096] gcc7 warnings

2017-02-01 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21096

Nick Clifton  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #1 from Nick Clifton  ---
Created attachment 9787
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9787=edit
Proposed patch

Hi Dilyan,

  Please could you try out this patch and let me know if it works.

  Thanks.

Cheers
  Nick

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