[Bug gold/18695] [x86-64] Missing relocation overflow check

2016-02-06 Thread ccoutant at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=18695 --- Comment #10 from Cary Coutant --- Created attachment 8963 --> https://sourceware.org/bugzilla/attachment.cgi?id=8963&action=edit Patch to fix broken x32 overflow checks Fix incorrect x32 overflow checking for refs to weak undef symbols.

[Bug gold/18695] [x86-64] Missing relocation overflow check

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=18695 --- Comment #9 from H.J. Lu --- (In reply to H.J. Lu from comment #8) > X32 overflow check is wrong. One x32 gold test failure: > > Cary, do you want me to fix it? You can build x32 gold under Ubuntu with CC="gcc -mx32 -fno-lto " CXX="g++

[Bug gold/19567] Symbol_value::value doesn't support x32 overflow check

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19567 --- Comment #14 from H.J. Lu --- Another R_X86_64_32S overflow check testcase: [hjl@gnu-tools-1 pr19567]$ cat x.S #ifndef SPACE #define SPACE 0x8000 #endif .data .space SPACE .comm foo,4 .text .glob

[Bug gold/18695] [x86-64] Missing relocation overflow check

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=18695 --- Comment #8 from H.J. Lu --- X32 overflow check is wrong. One x32 gold test failure: `echo g++ -mx32 -fno-lto -W -Wall-Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -fno-use-linker-plugin -static-libstdc

[Bug gold/19577] Gold failed to build with GCC 5.3

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 Cary Coutant changed: What|Removed |Added Attachment #8962|0 |1 is patch|

[Bug gold/19577] Gold failed to build with GCC 5.3

2016-02-06 Thread ccoutant at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 Cary Coutant changed: What|Removed |Added Attachment #8961|0 |1 is obsolete|

[Bug gold/19577] Gold failed to build with GCC 5.3

2016-02-06 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 --- Comment #9 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Cary Coutant : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b7a4e9d8e6a854d2344ab7963e531d6f19571d2e commit b7a4e9d8e6a854d2344ab7963e5

[Bug gold/19577] Gold failed to build with GCC 5.3

2016-02-06 Thread ccoutant at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 --- Comment #8 from Cary Coutant --- Sorry, that patch was stale. Here's the correct version. -cary On Sat, Feb 6, 2016 at 5:55 PM, Cary Coutant wrote: >> /export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:1009:37: error: >> integer

[Bug gold/19577] Gold failed to build with GCC 5.3

2016-02-06 Thread ccoutant at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 --- Comment #7 from Cary Coutant --- > /export/gnu/import/git/sources/binutils-gdb/gold/reloc.h:1009:37: error: > integer overflow in expression [-Werror=overflow] > int32_t max = (1 << (bits - 1)) - 1; >

[Bug gold/19567] Symbol_value::value doesn't support x32 overflow check

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19567 --- Comment #13 from H.J. Lu --- Another testcase: [hjl@gnu-tools-1 pr18695]$ cat bar.c #include extern int *get_foo (void); int main () { int *p = get_foo (); printf ("foo: %d\n", *p); *p = 1; printf ("foo: %d\n", *p); return 0;

[Bug gold/19577] Gold failed to build with GCC 5.3

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 H.J. Lu changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug gold/19567] Symbol_value::value doesn't support x32 overflow check

2016-02-06 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=19567 --- Comment #12 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Cary Coutant : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=19ef3f4d2eaac10e98c7ba3f9eace8609ab5278e commit 19ef3f4d2eaac10e98c7ba3f9e

[Bug gas/19576] bogus code generation with on SunOS with 2.26

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19576 --- Comment #4 from H.J. Lu --- The difference is @ -317,7 +317,7 @@ Symbol table '.symtab' contains 95 entri 37: 0004 4 OBJECT GLOBAL DEFAULT COM ResourceStateCallback 38: 0 NOTYPE GLOBAL DEFAULT UND _CallC

[Bug gas/19576] bogus code generation with on SunOS with 2.26

2016-02-06 Thread richard at netbsd dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=19576 --- Comment #3 from Richard PALO --- (In reply to H.J. Lu from comment #2) > I built a cross binutils to x86_64-solaris2 on Linux/x86-64 and got > > [hjl@gnu-tools-1 gas]$ nm -lug x.o | grep ree > U __dtrace_Xserver___resource__free

[Bug gold/19577] Gold failed to build with GCC 5.3

2016-02-06 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 --- Comment #5 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Cary Coutant : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=72c55146bb505642994637071b305bf4d30ef685 commit 72c55146bb505642994637071b3

[Bug gold/19577] Gold failed to build with GCC 5.3

2016-02-06 Thread ccoutant at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 Cary Coutant changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug gold/19577] Gold failed to build with GCC 5.3

2016-02-06 Thread ccoutant at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 --- Comment #3 from Cary Coutant --- Created attachment 8960 --> https://sourceware.org/bugzilla/attachment.cgi?id=8960&action=edit Patch to fix the problem. Here's the patch. Sorry, I forgot to add the PR number when committing the fix. h

[Bug gas/19576] bogus code generation with on SunOS with 2.26

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19576 H.J. Lu changed: What|Removed |Added Status|NEW |WAITING CC|

[Bug gold/19577] Gold failed to build with GCC 5.3

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 --- Comment #2 from H.J. Lu --- Here is a patch to move address overflow check to reloc.h: https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=8504d6a46b0bf19857f3ab55848bd9fc1d430ecb -- You are receiving this mail because: You are on

[Bug gold/19577] Gold failed to build with GCC 5.3

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 --- Comment #1 from H.J. Lu --- powerpc.cc has working address overflow check: template class Powerpc_relocate_functions { public: enum Overflow_check { CHECK_NONE, CHECK_SIGNED, CHECK_UNSIGNED, CHECK_BITFIELD, CHECK_L

[Bug gold/19577] Gold failed to build with GCC 5.3

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 H.J. Lu changed: What|Removed |Added Version|unspecified |2.27 (HEAD) -- You are receiving this mail

[Bug gold/19577] New: Gold failed to build with GCC 5.3

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19577 Bug ID: 19577 Summary: Gold failed to build with GCC 5.3 Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: gold

[Bug gold/19567] Symbol_value::value doesn't support x32 overflow check

2016-02-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19567 --- Comment #11 from H.J. Lu --- Here is a testcase: [hjl@gnu-tools-1 pr18695]$ cat foo.S .data .space 0x8000 .comm foo,4 [hjl@gnu-tools-1 pr18695]$ cat main.c #include extern int foo; int main () { printf (

[Bug binutils/19405] nios2 binutils assertion fail at elf32-nios2.c:1038

2016-02-06 Thread romain.naour at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19405 romain.naour at gmail dot com changed: What|Removed |Added CC||romain.naour at gmail d

[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2016-02-06 Thread ssbssa at yahoo dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=11539 Domani Hannes changed: What|Removed |Added CC||ssbssa at yahoo dot de --- Comment #1