[Bug gold/16992] libQtGui linked with gold crashes all Qt programs on startup

2015-02-16 Thread manisandro at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16992

Sandro Mani  changed:

   What|Removed |Added

 CC||manisandro 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 ld/17975] Useless FILE entry in symbol table for linker generated symbols

2015-02-16 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=17975

--- Comment #4 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

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

commit 35f82954b5e46ef5f56653d4f3aa0d1236f558da
Author: H.J. Lu 
Date:   Sat Feb 14 20:17:28 2015 -0800

Properly place the NULL STT_FILE symbol

We output a NULL STT_FILE symbol for forced local symbols so that they
are not associated with the STT_FILE symbol for real local symbols. This
patch makes sure that the NULL STT_FILE symbol is placed before forced
local symbols.

bfd/

PR ld/17975
* elflink.c (elf_link_output_extsym): Only check filesym_count
when outputting a NULL FILE symbol.  Set second_pass_sym to
h->forced_local && !h->root.linker_def.

ld/testsuite/

PR ld/17975
* ld-i386/tlsbin-nacl.rd: Likewise.
* ld-i386/tlsbin.rd: Likewise.
* ld-i386/tlsbindesc-nacl.rd: Likewise.
* ld-i386/tlsbindesc.rd: Likewise.
* ld-i386/tlsdesc-nacl.rd: Likewise.
* ld-i386/tlsdesc.rd: Likewise.
* ld-i386/tlsnopic-nacl.rd: Likewise.
* ld-i386/tlsnopic.rd: Likewise.
* ld-i386/tlspic-nacl.rd: Likewise.
* ld-i386/tlspic.rd: Likewise.
* ld-x86-64/tlsbin-nacl.rd: Likewise.
* ld-x86-64/tlsbin.rd: Likewise.
* ld-x86-64/tlsbindesc-nacl.rd: Likewise.
* ld-x86-64/tlsbindesc.rd: Likewise.
* ld-x86-64/tlsdesc-nacl.rd: Likewise.
* ld-x86-64/tlsdesc.rd: Likewise.
* ld-x86-64/tlspic-nacl.rd: Likewise.
* ld-x86-64/tlspic.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/16992] libQtGui linked with gold crashes all Qt programs on startup

2015-02-16 Thread rdieter at math dot unl.edu
https://sourceware.org/bugzilla/show_bug.cgi?id=16992

Rex Dieter  changed:

   What|Removed |Added

 CC||rdieter at math dot unl.edu

-- 
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/17975] Useless FILE entry in symbol table for linker generated symbols

2015-02-16 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=17975

--- Comment #5 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

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

commit 6dfb72b9068626cbbf0017df092162d11304a3b0
Author: H.J. Lu 
Date:   Mon Feb 16 07:31:46 2015 -0800

Add ChangeLog entries for PR ld/17975 fix

-- 
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/17975] Useless FILE entry in symbol table for linker generated symbols

2015-02-16 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=17975

--- Comment #6 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

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

commit 49bd1d6e875d4b9ab0cdb909ae6db2bfc95f364b
Author: H.J. Lu 
Date:   Mon Feb 16 08:35:17 2015 -0800

Update more ld testcases after PR ld/17975 fix

* ld-alpha/tlspic.rd: Updated.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlstocso.r: Likewise.
* ld-s390/tlspic.rd: Likewise.
* ld-s390/tlspic_64.rd: Likewise.
* ld-sparc/gotop32.dd: Likewise.
* ld-sparc/gotop64.dd: Likewise.
* ld-sparc/tlssunnopic32.rd: Likewise.
* ld-sparc/tlssunnopic64.rd: Likewise.
* ld-sparc/tlssunpic32.rd: Likewise.
* ld-sparc/tlssunpic64.rd: Likewise.
* ld-tic6x/shlib-1.rd: Likewise.
* ld-tic6x/shlib-1b.rd: Likewise.
* ld-tic6x/shlib-1r.rd: Likewise.
* ld-tic6x/shlib-1rb.rd: Likewise.
* ld-tic6x/shlib-noindex.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 ld/17975] Useless FILE entry in symbol table for linker generated symbols

2015-02-16 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17975

H.J. Lu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |2.26

--- Comment #7 from H.J. Lu  ---
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/17512] libbfd/binutils: crashes on fuzzed samples

2015-02-16 Thread cherepan at mccme dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=17512

--- Comment #208 from Alexander Cherepanov  ---
Created attachment 8135
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8135&action=edit
Problems with `readelf -agteAruhlsSdIncVWw --dyn-syms` (32-bit)

ubsan

Files: 6
Errors:
  1 ../../../source/binutils/dwarf.c:4722:31: runtime error: signed integer
overflow: ... - ... cannot be represented in type 'int'
  1 ../../../source/binutils/dwarf.c:5924:6: runtime error: variable length
array bound evaluates to non-positive value ...
  1 ../../../source/binutils/dwarf.c:6474:3: runtime error: signed integer
overflow: ... * ... cannot be represented in type 'int'
  1 ../../../source/binutils/dwarf.c:6480:29: runtime error: signed integer
overflow: ... * ... cannot be represented in type 'int'
  1 ../../../source/binutils/dwarf.c:6503:40: runtime error: signed integer
overflow: ... * ... cannot be represented in type 'int'
  1 ../../../source/binutils/dwarf.c:6512:40: runtime error: signed integer
overflow: ... * ... cannot be represented in type 'int'
  1 ../../../source/binutils/dwarf.c:7029:37: runtime error: signed integer
overflow: ... - ... cannot be represented in type 'int'
  1 ../../../source/binutils/readelf.c:15081:46: runtime error: signed
integer overflow: ... - ... cannot be represented in type 'int'
  1 ../../../source/binutils/readelf.c:15113:38: runtime error: signed
integer overflow: ... - ... cannot be represented in type 'int'

-- 
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/11675] -- oformat binary or srec broken

2015-02-16 Thread tom at bumblecow dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11675

Tom Rix  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||tom at bumblecow dot com
 Resolution|--- |FIXED

--- Comment #6 from Tom Rix  ---
This is fixed in top of tree 67ca0b7662419d76375773e0e8aba545d0c43e34

This is the change that fixed the problem

commit b1345da313436ded1bc8328b21a283dc4d65a9a4
Author: Maciej W. Rozycki 
Date:   Fri Aug 20 21:06:30 2010 +

* elf32-m68k.c (bfd_elf_m68k_set_target_options): Don't set GOT
options unless an m68k hash table has been found.

The problem was reproduced on the change immediately before this change.
0982e15774ff2baa92f4d595266eb29c154a8037

-- 
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/17971] incremental.cc #include twice output.h

2015-02-16 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=17971

--- Comment #1 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=0ed4b0bf3d2ca248778a2ffbcb2c5cafbfdd64dc

commit 0ed4b0bf3d2ca248778a2ffbcb2c5cafbfdd64dc
Author: Cary Coutant 
Date:   Mon Feb 16 20:14:08 2015 -0800

Remove redundant include of "output.h".

gold/
PR gold/17971
* incremental.cc: Remove redundant include of "output.h".

-- 
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/17971] incremental.cc #include twice output.h

2015-02-16 Thread ccoutant at google dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17971

Cary Coutant  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Cary Coutant  ---
Fixed on trunk.

-- 
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/16992] libQtGui linked with gold crashes all Qt programs on startup

2015-02-16 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=16992

--- Comment #13 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=e9c1bdad269c0c3352eebcc9481ed65144001b0b

commit e9c1bdad269c0c3352eebcc9481ed65144001b0b
Author: Cary Coutant 
Date:   Mon Feb 16 22:15:12 2015 -0800

Fix --dynamic-list so that symbols not in the list are still exported.

In PR 13577, the complaint was that -Bsymbolic was overriding the binding
behavior for symbols listed in the --dynamic-list by setting the
DT_SYMBOLIC
tag in the dynamic table. In reading the Gnu ld manual, I decided that
--dynamic-list should be mutually exclusive of -Bsymbolic, and modified
gold so that --dynamic-list would treat symbols listed as preemptible,
and all other symbols as internally bound. I was wrong.

PR 16992 shows that with --dynamic-list (and not -Bsymbolic), a symbol
not listed in the dynamic list is being internally bound within the
shared library, but because it's still in the dynamic symbol table, we
expose it to a COPY relocation, and things go really bad from there.

(I can reproduce the same failure, simply by turning on
-Bsymbolic-functions
with the Gnu linker. Even though the symbol is bound internally, it's
still exported to the dynamic symbol table, and is exposed to a COPY
relocation.)

I've backed out part of the fix for PR 13577, and -Bsymbolic (or
-Bsymbolic-functions) can now be used with --dynamic-list, but if the
two are used together, we do not set DT_SYMBOLIC or DF_SYMBOLIC
(this matches Gnu ld behavior). We now treat symbols listed in the
dynamic list as premptible, but we do not automatically treat symbols
not listed there as non-premptible.

gold/
PR gold/13577
PR gold/16992
* layout.cc (Layout::finish_dynamic_section): Don't set DT_SYMBOLIC or
DF_SYMBOLIC if --dynamic-list option is used.
* options.cc (General_options::finalize): --dynamic-list is not
mutually exclusive with -Bsymbolic.
* symtab.h (Symbol::is_preemptible): Don't exclude dynamic symbols not
listed in --dynamic-list.
* testsuite/Makefile.am (dynamic_list_lib2.so): Add
-Bsymbolic-functions.
* testsuite/Makefile.in: Regenerate.

-- 
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/13577] Gold linker does not respect --dynamic-list option

2015-02-16 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=13577

--- Comment #7 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=e9c1bdad269c0c3352eebcc9481ed65144001b0b

commit e9c1bdad269c0c3352eebcc9481ed65144001b0b
Author: Cary Coutant 
Date:   Mon Feb 16 22:15:12 2015 -0800

Fix --dynamic-list so that symbols not in the list are still exported.

In PR 13577, the complaint was that -Bsymbolic was overriding the binding
behavior for symbols listed in the --dynamic-list by setting the
DT_SYMBOLIC
tag in the dynamic table. In reading the Gnu ld manual, I decided that
--dynamic-list should be mutually exclusive of -Bsymbolic, and modified
gold so that --dynamic-list would treat symbols listed as preemptible,
and all other symbols as internally bound. I was wrong.

PR 16992 shows that with --dynamic-list (and not -Bsymbolic), a symbol
not listed in the dynamic list is being internally bound within the
shared library, but because it's still in the dynamic symbol table, we
expose it to a COPY relocation, and things go really bad from there.

(I can reproduce the same failure, simply by turning on
-Bsymbolic-functions
with the Gnu linker. Even though the symbol is bound internally, it's
still exported to the dynamic symbol table, and is exposed to a COPY
relocation.)

I've backed out part of the fix for PR 13577, and -Bsymbolic (or
-Bsymbolic-functions) can now be used with --dynamic-list, but if the
two are used together, we do not set DT_SYMBOLIC or DF_SYMBOLIC
(this matches Gnu ld behavior). We now treat symbols listed in the
dynamic list as premptible, but we do not automatically treat symbols
not listed there as non-premptible.

gold/
PR gold/13577
PR gold/16992
* layout.cc (Layout::finish_dynamic_section): Don't set DT_SYMBOLIC or
DF_SYMBOLIC if --dynamic-list option is used.
* options.cc (General_options::finalize): --dynamic-list is not
mutually exclusive with -Bsymbolic.
* symtab.h (Symbol::is_preemptible): Don't exclude dynamic symbols not
listed in --dynamic-list.
* testsuite/Makefile.am (dynamic_list_lib2.so): Add
-Bsymbolic-functions.
* testsuite/Makefile.in: Regenerate.

-- 
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/16992] libQtGui linked with gold crashes all Qt programs on startup

2015-02-16 Thread ccoutant at google dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16992

Cary Coutant  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #14 from Cary Coutant  ---
The problem looks like a COPY relocation to a symbol that was internally bound
within the shared library (because it was not listed in the --dynamic-list
option). My original interpretation of --dynamic-list was that symbols listed
in the file should be preemptible, and by implication all other symbols should
*not* be. Unfortunately, COPY relocations break that internal binding (if we
make a symbol bound internally, we should change the visibility to protected to
prevent COPY relocations). But my interpretation did not match Gnu ld, so I've
fixed it to match more closely what Gnu ld does.

-- 
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/16992] libQtGui linked with gold crashes all Qt programs on startup

2015-02-16 Thread markus at trippelsdorf dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=16992

Markus Trippelsdorf  changed:

   What|Removed |Added

 CC||heirecka at exherbo dot org

--- Comment #15 from Markus Trippelsdorf  ---
*** Bug 17895 has been marked as a duplicate of this bug. ***

-- 
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/17895] gold linked Qt4 causes segfaults and hanging applications

2015-02-16 Thread markus at trippelsdorf dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=17895

Markus Trippelsdorf  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #2 from Markus Trippelsdorf  ---
Should be fixed now.

*** This bug has been marked as a duplicate of bug 16992 ***

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