[Bug ld/12801] ICE in bfd/elf64-x86-64.c line 2764 in elf64_x86_64_relocate_section

2011-05-25 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12801

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE

--- Comment #6 from H.J. Lu hjl.tools at gmail dot com 2011-05-25 15:36:11 
UTC ---
Dup.

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

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12801] ICE in bfd/elf64-x86-64.c line 2764 in elf64_x86_64_relocate_section

2011-05-25 Thread rguenth at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12801

Richard Guenther rguenth at gcc dot gnu.org changed:

   What|Removed |Added

 Status|WAITING |NEW

--- Comment #3 from Richard Guenther rguenth at gcc dot gnu.org 2011-05-25 
08:35:48 UTC ---
I don't have mainline around.  I have 2.20 around which works and 2.21 and
the top of the 2.21 branch which both fail.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12804] New: Incremental link tests failed

2011-05-25 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12804

   Summary: Incremental link tests failed
   Product: binutils
   Version: 2.22 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
AssignedTo: i...@airs.com
ReportedBy: hjl.to...@gmail.com


On Linux/x86-64, I got

make[7]: *** [incremental_test_2] Error 1
make[7]: *** [incremental_test_3] Error 1
make[7]: *** [incremental_test_4] Error 1
make[6]: *** [check-am] Error 2

Linux/ia32 seems OK.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12804] Incremental link tests failed

2011-05-25 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12804

Ian Lance Taylor ian at airs dot com changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||ian at airs dot com
 AssignedTo|ian at airs dot com |ccoutant at google dot com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12710] Relative paths in thin archives are incorrect in certain cases

2011-05-25 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12710

--- Comment #1 from Nick Clifton nickc at redhat dot com 2011-05-25 16:19:47 
UTC ---
Created attachment 5751
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5751
fix thin archive pathname appending

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12710] Relative paths in thin archives are incorrect in certain cases

2011-05-25 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12710

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 Status|NEW |WAITING
 CC||nickc at redhat dot com

--- Comment #2 from Nick Clifton nickc at redhat dot com 2011-05-25 16:20:24 
UTC ---
Hi Spoo,

  Please could you try out the uploaded patch and let me know what you think ?

Cheers
  Nick

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12801] ICE in bfd/elf64-x86-64.c line 2764 in elf64_x86_64_relocate_section

2011-05-25 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12801

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 Status|NEW |WAITING

--- Comment #4 from H.J. Lu hjl.tools at gmail dot com 2011-05-25 12:26:39 
UTC ---
Please try:

ftp://sourceware.org/pub/binutils/snapshots/binutils-2.21.51.tar.bz2

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12366] assertion failure with STT_GNU_IFUNC symbols on x86_64

2011-05-25 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12366

--- Comment #6 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2011-05-25 17:41:40 UTC ---
CVSROOT:/cvs/src
Module name:src
Branch: binutils-2_21-branch
Changes by:h...@sourceware.org2011-05-25 17:41:35

Modified files:
ld/testsuite   : ChangeLog 
ld/testsuite/ld-ifunc: ifunc-10-i386.s ifunc-10-x86-64.s 
   ifunc-11-i386.s ifunc-11-x86-64.s 
bfd: ChangeLog elf-ifunc.c elf32-i386.c 
 elf64-x86-64.c 
Added files:
ld/testsuite/ld-ifunc: ifunc-12-i386.d ifunc-12-i386.s 
   ifunc-12-x86-64.d ifunc-12-x86-64.s 
   ifunc-13-i386.d ifunc-13-x86-64.d 
   ifunc-13a-i386.s ifunc-13a-x86-64.s 
   ifunc-13b-i386.s ifunc-13b-x86-64.s 

Log message:
Handle STT_GNU_IFUNC symols when building shared library.

bfd/

2012-05-25  H.J. Lu  hongjiu...@intel.com

Backport from mainline
2012-01-06  H.J. Lu  hongjiu...@intel.com

PR ld/12366
PR ld/12371
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
handle symbols marked with regular reference, but not non-GOT
reference when building shared library.

* elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
local and global STT_GNU_IFUNC symols when building shared
library.
* elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.

ld/testsuite/

2012-05-25  H.J. Lu  hongjiu...@intel.com

Backport from mainline
2012-01-06  H.J. Lu  hongjiu...@intel.com

PR ld/12366
PR ld/12371
* ld-ifunc/ifunc-10-i386.s: Add more tests.
* ld-ifunc/ifunc-10-x86-64.s: Likewise.
* ld-ifunc/ifunc-11-i386.s: Likewise.
* ld-ifunc/ifunc-11-x86-64.s: Likewise.

* ld-ifunc/ifunc-12-i386.d: New.
* ld-ifunc/ifunc-12-i386.s: Likewise.
* ld-ifunc/ifunc-12-x86-64.d: Likewise.
* ld-ifunc/ifunc-12-x86-64.s: Likewise.
* ld-ifunc/ifunc-13-i386.d: Likewise.
* ld-ifunc/ifunc-13-x86-64.d: Likewise.
* ld-ifunc/ifunc-13a-i386.s: Likewise.
* ld-ifunc/ifunc-13a-x86-64.s: Likewise.
* ld-ifunc/ifunc-13b-i386.s: Likewise.
* ld-ifunc/ifunc-13b-x86-64.s: Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.1322.2.11r2=1.1322.2.12
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-12-i386.d.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-12-i386.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-12-x86-64.d.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-12-x86-64.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-13-i386.d.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-13-x86-64.d.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-13a-i386.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-13a-x86-64.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-13b-i386.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-13b-x86-64.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-10-i386.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.1r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-10-x86-64.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.1r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-11-i386.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.1r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-11-x86-64.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.1r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.5180.2.33r2=1.5180.2.34
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf-ifunc.c.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.4r2=1.4.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-i386.c.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.241.2.1r2=1.241.2.2

[Bug ld/12371] Garbage collection for STT_GNU_IFUNC symbols in shared library

2011-05-25 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12371

--- Comment #3 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2011-05-25 17:41:40 UTC ---
CVSROOT:/cvs/src
Module name:src
Branch: binutils-2_21-branch
Changes by:h...@sourceware.org2011-05-25 17:41:35

Modified files:
ld/testsuite   : ChangeLog 
ld/testsuite/ld-ifunc: ifunc-10-i386.s ifunc-10-x86-64.s 
   ifunc-11-i386.s ifunc-11-x86-64.s 
bfd: ChangeLog elf-ifunc.c elf32-i386.c 
 elf64-x86-64.c 
Added files:
ld/testsuite/ld-ifunc: ifunc-12-i386.d ifunc-12-i386.s 
   ifunc-12-x86-64.d ifunc-12-x86-64.s 
   ifunc-13-i386.d ifunc-13-x86-64.d 
   ifunc-13a-i386.s ifunc-13a-x86-64.s 
   ifunc-13b-i386.s ifunc-13b-x86-64.s 

Log message:
Handle STT_GNU_IFUNC symols when building shared library.

bfd/

2012-05-25  H.J. Lu  hongjiu...@intel.com

Backport from mainline
2012-01-06  H.J. Lu  hongjiu...@intel.com

PR ld/12366
PR ld/12371
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
handle symbols marked with regular reference, but not non-GOT
reference when building shared library.

* elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
local and global STT_GNU_IFUNC symols when building shared
library.
* elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.

ld/testsuite/

2012-05-25  H.J. Lu  hongjiu...@intel.com

Backport from mainline
2012-01-06  H.J. Lu  hongjiu...@intel.com

PR ld/12366
PR ld/12371
* ld-ifunc/ifunc-10-i386.s: Add more tests.
* ld-ifunc/ifunc-10-x86-64.s: Likewise.
* ld-ifunc/ifunc-11-i386.s: Likewise.
* ld-ifunc/ifunc-11-x86-64.s: Likewise.

* ld-ifunc/ifunc-12-i386.d: New.
* ld-ifunc/ifunc-12-i386.s: Likewise.
* ld-ifunc/ifunc-12-x86-64.d: Likewise.
* ld-ifunc/ifunc-12-x86-64.s: Likewise.
* ld-ifunc/ifunc-13-i386.d: Likewise.
* ld-ifunc/ifunc-13-x86-64.d: Likewise.
* ld-ifunc/ifunc-13a-i386.s: Likewise.
* ld-ifunc/ifunc-13a-x86-64.s: Likewise.
* ld-ifunc/ifunc-13b-i386.s: Likewise.
* ld-ifunc/ifunc-13b-x86-64.s: Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.1322.2.11r2=1.1322.2.12
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-12-i386.d.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-12-i386.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-12-x86-64.d.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-12-x86-64.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-13-i386.d.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-13-x86-64.d.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-13a-i386.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-13a-x86-64.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-13b-i386.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-13b-x86-64.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=NONEr2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-10-i386.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.1r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-10-x86-64.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.1r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-11-i386.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.1r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-ifunc/ifunc-11-x86-64.s.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.1r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.5180.2.33r2=1.5180.2.34
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf-ifunc.c.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.4r2=1.4.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-i386.c.diff?cvsroot=srconly_with_tag=binutils-2_21-branchr1=1.241.2.1r2=1.241.2.2

[Bug binutils/12558] AR move in an archive operation fails

2011-05-25 Thread d.g.gorbachev at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12558

Dmitry Gorbachev d.g.gorbachev at gmail dot com changed:

   What|Removed |Added

 CC||nickc at redhat dot com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12804] Incremental link tests failed

2011-05-25 Thread ccoutant at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12804

--- Comment #1 from Cary Coutant ccoutant at google dot com 2011-05-25 
17:47:37 UTC ---
Can you attach the file testsuite/test-suite.log? What version of gcc are you
configured with?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12559] GOLD cannot find entry symbol in a static library

2011-05-25 Thread d.g.gorbachev at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12559

Dmitry Gorbachev d.g.gorbachev at gmail dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #1 from Dmitry Gorbachev d.g.gorbachev at gmail dot com 
2011-05-25 18:25:24 UTC ---
Fixed by http://sourceware.org/ml/binutils-cvs/2011-05/msg00166.html. Thanks.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12804] Incremental link tests failed

2011-05-25 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12804

--- Comment #2 from H.J. Lu hjl.tools at gmail dot com 2011-05-25 18:29:53 
UTC ---
(In reply to comment #1)
 Can you attach the file testsuite/test-suite.log? What version of gcc are you
 configured with?

[hjl@gnu-6 gold]$ find -name *.log
./bootstrap-test.log
./config.log
./test-suite.log
./bootstrap-test-r.log
[hjl@gnu-6 gold]$ cat ./test-suite.log

   gold 0.1: ./test-suite.log   


All 2 tests passed.  

.. contents:: :depth: 2

[hjl@gnu-6 gold]$ 

g++ -W -Wall-Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-fmerge-constants -g -O2   -o gc_comdat_test -Bgcctestdir/ -Wl,--gc-sections
gc_comdat_test_1.o gc_comdat_test_2.o
gcctestdir/ld: error: two_file_test_2.o: multiple definition of 't1_2()'
gcctestdir/ld: two_file_test_tmp.o: previous definition here
gcctestdir/ld: error: two_file_test_2.o: multiple definition of 't1a()'
gcctestdir/ld: two_file_test_tmp.o: previous definition here
gcctestdir/ld: error: two_file_test_2.o: multiple definition of 'f10()'
gcctestdir/ld: two_file_test_tmp.o: previous definition here
gcctestdir/ld: error: two_file_test_2.o: multiple definition of 'f11b(int
(*)())'
gcctestdir/ld: two_file_test_tmp.o: previous definition here
gcctestdir/ld: error: two_file_test_2.o: multiple definition of 'f12()'
gcctestdir/ld: two_file_test_tmp.o: previous definition here
gcctestdir/ld: error: two_file_test_2.o: multiple definition of 'f13()'
gcctestdir/ld: two_file_test_tmp.o: previous definition here
gcctestdir/ld: error: two_file_test_2.og++ -W -Wall-Werror
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2   -o
gc_tls_test -Bgcctestdir/ -Wl,--gc-sections gc_tls_test.o
: multiple definition of 'f14()'

I am using gcc 4.5 from Fedora 14.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12804] Incremental link tests failed

2011-05-25 Thread ccoutant at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12804

--- Comment #3 from Cary Coutant ccoutant at google dot com 2011-05-25 
19:01:19 UTC ---
OK, I think the problem is that I'm out of patch space because some small
COMDAT functions are being included incorrectly. COMDAT handling is incremental
patch 16, which is next up, and I think that'll fix this.

Having some extra patch space added to the output file during
--incremental-full would also have fixed this, but it really would have masked
the problem rather than fixed it. That's one reason I'm not yet adding extra
patch space. That's in patch 22, the next to be posted.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12807] New: OBJCOPY from ELF to COFF changes relocation type from 32 to 16 bits

2011-05-25 Thread ee at la dot mine.nu
http://sourceware.org/bugzilla/show_bug.cgi?id=12807

   Summary: OBJCOPY from ELF to COFF changes relocation type from
32 to 16 bits
   Product: binutils
   Version: unspecified
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassig...@sources.redhat.com
ReportedBy: e...@la.mine.nu


Create a small C program and compile it with TCC compiler:

char *str = STR;

void
empty( void )
{
}

$tcc -c -o t.o t.c
$objdump -x t.o
[...]
RELOCATION RECORDS FOR [.data]:
OFFSET   TYPE  VALUE
 R_386_32  L.0

// disassembled:
.data:0820 _data   segment para public 'DATA' use32
.data:0820 assume cs:_data
.data:0820 ;org 820h
.data:0820 public str
.data:0820 24 00 00 08 str dd offset L_0   ; STR
.data:0824 53 54 52 00 L_0 db 'STR',0  ; 

$objcopy -O pe-i386 t.o tw.obj
$objdump -x tw.obj
[...]
RELOCATION RECORDS FOR [.data]:
OFFSET   TYPE  VALUE
 1 L.0+0xfffc

// disassembled:
.data:0020 _data   segment para public 'DATA' use32
.data:0020 assume cs:_data
.data:0020 ;org 20h
.data:0020 public str
.data:0020 24 00   str dw offset L_0   ; STR
.data:0022 00 00   align 4
.data:0024 53 54 52 00 L_0 db 'STR',0  ; 
===

objcopy decides to change the R_386_32 type into type 1 - 16 bits 
(instead of 6 - 32 bits). The PE format doesn't handle 16 bit relocations 
so when you link the copied object into a program and run it you'll get a
segfault because the str pointer is null.
No error or warning is displayed by objcopy.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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


gold cannot handle _start in a library

2011-05-25 Thread Roland McGrath
Given:

$ gcc -c -xc (echo '_start(){}') -o start.o
$ ar cq libstart.a start.o
$ ./gold/ld-new -o foo libstart.a

The output file foo is an empty ELF file.
With:

$ ./gold/ld-new -o foo -e _start libstart.a
./gold/ld-new: warning: cannot find entry symbol '_start'

The results are the same, plus the extra warning.

BFD ld does not have this bug.
I tested with today's trunk builds of gold and BFD ld.


Thanks,
Roland

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12808] New: Segfault in _bfd_elf_merge_symbol

2011-05-25 Thread kmtaylor at gmx dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12808

   Summary: Segfault in _bfd_elf_merge_symbol
   Product: binutils
   Version: 2.20
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassig...@sources.redhat.com
ReportedBy: kmtay...@gmx.com


Created attachment 5752
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5752
Fixes bug - Error message may not be correct

The wrong format string is used in calls to _bfd_default_error_handler. The
attached patch fixes the one that caused a crash for me. The other calls are
probably broken too. I do not know enough about what the error messages are
trying to say to fix them properly.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12710] Relative paths in thin archives are incorrect in certain cases

2011-05-25 Thread spoo at zarbosoft dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12710

--- Comment #3 from spoo at zarbosoft dot com 2011-05-26 02:39:56 UTC ---
It works great!  Thanks for looking at this.  I tested it in the sandbox I used
to test the original version and I tested it in my project.  I don't know if
there are other tests I should do, but it looks good to me.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12808] Segfault in _bfd_elf_merge_symbol

2011-05-25 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12808

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

   Attachment #5752|application/octet-stream|text/plain
  mime type||

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/12809] New: R_X86_64_TPOFF64 isn't handled properly

2011-05-25 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12809

   Summary: R_X86_64_TPOFF64 isn't handled properly
   Product: binutils
   Version: 2.22 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassig...@sources.redhat.com
ReportedBy: hjl.to...@gmail.com


[hjl@gnu-6 tmp]$ cat foo.c
extern void abort (void);

__thread char thra[2];

void
__attribute__((noinline))
f1 (void)
{
  int i;
  for (i = 0; i  2; i++)
thra[i]= i;
}

int
main (void)
{
  f1 ();
  if (thra[0] != 0)
abort ();
  return 0;
}
[hjl@gnu-6 tmp]$ gcc -mcmodel=large -g foo.c -O  
[hjl@gnu-6 tmp]$ ./a.out 
Segmentation fault
[hjl@gnu-6 tmp]$

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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