[Bug ld/14426] add --ignore-unresolved-symbol from NetBSD

2012-10-25 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14426

Alan Modra  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||amodra at gmail dot com
 Resolution||FIXED

--- Comment #2 from Alan Modra  2012-10-26 03:53:04 
UTC ---
Patch applied

-- 
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 gas/14758] ppc64 insns incorrectly assembled in 32-bit mode

2012-10-25 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14758

Alan Modra  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #3 from Alan Modra  2012-10-26 03:44:31 
UTC ---
Fixed

-- 
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 gas/14758] ppc64 insns incorrectly assembled in 32-bit mode

2012-10-25 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=14758

--- Comment #2 from cvs-commit at gcc dot gnu.org  2012-10-26 03:40:41 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:amo...@sourceware.org2012-10-26 03:40:37

Modified files:
bfd: ChangeLog elf32-ppc.c 
gas: ChangeLog 
gas/config : tc-ppc.c 

Log message:
PR target/14758
bfd/
* elf32-ppc.c (ppc_elf_reloc_type_lookup): Decode ppc64 _DS
bfd_reloc values.  Map to corresponding D-form relocs.
(is_insn_ds_form, is_insn_qs_form): New functions.
(ppc_elf_relocate_section): Validate insn with DS-form or DQ-form
fields using D-form reloc.
gas/
* config/tc-ppc.c (ppc_setup_opcodes): Fix comment.
(md_assemble): Translate to _DS relocs for ppc32 as well as ppc64.
(tc_gen_reloc): Handle _DS relocs in ppc32 mode.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5830&r2=1.5831
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-ppc.c.diff?cvsroot=src&r1=1.320&r2=1.321
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/ChangeLog.diff?cvsroot=src&r1=1.4853&r2=1.4854
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/config/tc-ppc.c.diff?cvsroot=src&r1=1.185&r2=1.186

-- 
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/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto

2012-10-25 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14747

--- Comment #12 from H.J. Lu  2012-10-26 02:37:25 
UTC ---
I checked a different patch into hjl/lto/master branch.
Please check it out.

-- 
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/14769] New: Gold generates bad executable with -z relro

2012-10-25 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14769

 Bug #: 14769
   Summary: Gold generates bad executable with -z relro
   Product: binutils
   Version: 2.24 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
AssignedTo: i...@airs.com
ReportedBy: hjl.to...@gmail.com
CC: ccout...@google.com
Classification: Unclassified


When binutils is configured with

LDFLAGS="-Wl,-z,relro" \
/export/gnu/import/git/binutils/configure \
--enable-shared -enable-gold --enable-plugins --enable-threads \
--prefix=/usr/local \
--with-local-prefix=/usr/local

I get

/bin/sh: line 1:  5787 Segmentation fault  "$tst" >
incremental_test_6.log-t 2>&1
FAIL: incremental_test_6
/bin/sh: line 1:  5800 Segmentation fault  "$tst" >
incremental_copy_test.log-t 2>&1
FAIL: incremental_copy_test
/bin/sh: line 1:  5827 Segmentation fault  "$tst" >
incremental_common_test_1.log-t 2>&1
FAIL: incremental_common_test_1
/bin/sh: line 1:  5860 Segmentation fault  "$tst" >
incremental_comdat_test_1.log-t 2>&1
FAIL: incremental_comdat_test_1
PASS: binary_unittest
/bin/sh: line 1:  5750 Segmentation fault  (core dumped) "$tst" >
incremental_test_3.log-t 2>&1
FAIL: incremental_test_3
/bin/sh: line 1:  5769 Segmentation fault  (core dumped) "$tst" >
incremental_test_4.log-t 2>&1
FAIL: incremental_test_4
/bin/sh: line 1:  5782 Segmentation fault  (core dumped) "$tst" >
incremental_test_5.log-t 2>&1
FAIL: incremental_test_5
[hjl@gnu-tools-1 testsuite]$ gdb incremental_test_6
GNU gdb (GDB) 7.5.50.20120930-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from
/export/build/gnu/binutils-gold/build-x86_64-linux/gold/testsuite/incremental_test_6...
warning: Loadable section ".jcr" outside of ELF segments

warning: Loadable section ".fini_array" outside of ELF segments

warning: Loadable section ".init_array" outside of ELF segments
BFD:
/export/build/gnu/binutils-gold/build-x86_64-linux/gold/testsuite/incremental_test_6:
invalid string offset 4199568 >= 968 for section `.strtab'
done.
(gdb) 

Gold generates bad executables.

-- 
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/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto

2012-10-25 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14747

H.J. Lu  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #11 from H.J. Lu  2012-10-26 00:03:54 
UTC ---
Fixed on hjl/lto/master branch and will be fixed in the
Linux binutils 2.23.51.0.4.

-- 
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/14768] Checklist: Binutils Migration To Git

2012-10-25 Thread fred.cooke+nospam at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14768

--- Comment #2 from Fred  2012-10-25 
22:13:07 UTC ---
Thanks Joseph! Let's discuss this onthe list for maximum transparency and I'll
collate the results from past and present discussions here as we go! :-)

-- 
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/14768] Checklist: Binutils Migration To Git

2012-10-25 Thread joseph at codesourcery dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14768

--- Comment #1 from joseph at codesourcery dot com  2012-10-25 22:06:51 UTC ---
My past messages to the various lists discuss the relevant issues.  I 
still think a combined binutils+gdb git repository (without any of the 
other pieces from the src repository) is probably the best trade-off.

http://sourceware.org/ml/gdb/2011-10/msg00134.html is one of my more 
recent messages on this subject (you'll find plenty more relevant 
information in that thread and in the other threads on the subject over 
the past several years on both binutils and GDB project list).

-- 
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/14768] New: Checklist: Binutils Migration To Git

2012-10-25 Thread fred.cooke+nospam at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14768

 Bug #: 14768
   Summary: Checklist: Binutils Migration To Git
   Product: binutils
   Version: 2.24 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: fred.cooke+nos...@gmail.com
ReportedBy: fred.cooke+nos...@gmail.com
Classification: Unclassified


A meta-issue for the work required to ditch CVS, once and for all.

Blocks/Depends on relationships will be added for all subtasks.

-- 
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/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto

2012-10-25 Thread polacek at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14747

--- Comment #10 from Marek Polacek  2012-10-25 
14:08:06 UTC ---
Seems to work.  Thanks a lot!

-- 
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/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto

2012-10-25 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14747

H.J. Lu  changed:

   What|Removed |Added

 Status|WAITING |ASSIGNED
 AssignedTo|unassigned at sourceware|hjl.tools at gmail dot com
   |dot org |

--- Comment #9 from H.J. Lu  2012-10-25 13:26:31 
UTC ---
Created attachment 6700
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6700
A patch

Please try this.

-- 
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/14747] undefined reference to `_GLOBAL_OFFSET_TABLE_' with -flto

2012-10-25 Thread polacek at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14747

--- Comment #8 from Marek Polacek  2012-10-25 
11:59:16 UTC ---
Ok, reproducible even on x86_64 Fedora 16 with trunk GCC.  I have built current
GCC trunk (just ../configure --prefix=`pwd` --enable-languages=c,c++
--disable-bootstrap) and current hjl/lto/master branch (just ../configure &&
make).  Then in ~/hbin2 I have newly built ld-new and a 'ld' script:
$ cat ~/hbin2/ld
#!/bin/sh
/home/marek/hbin2/ld-new --version
exec /home/marek/hbin2/ld-new "$@"

Now, it is needed to adjust ORIGINAL_LD_FOR_TARGET and
ORIGINAL_PLUGIN_LD_FOR_TARGET in ./gcc/collect-ld to point to newly built
ld-new, so e.g. "/home/marek/hbin2/ld".  Then just:
$ PATH=~/hbin2:$PATH ~/rh/x/trunk/gcc/g++ -B ~/rh/x/trunk/gcc -c -O2
-fno-early-inlining -flto pr13229.cc -m32
$ PATH=~/hbin2:$PATH ~/rh/x/trunk/gcc/g++ -B ~/rh/x/trunk/gcc -shared -O2 -fPIC
-flto -fuse-linker-plugin -nostdlib pr13229.o -m32
GNU ld (GNU Binutils) 2.23.51.20121025
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
/tmp/cck1nj8q.ltrans0.ltrans.o: In function `test2()':
cck1nj8q.ltrans0.o:(.text+0x8): undefined reference to `_GLOBAL_OFFSET_TABLE_'
collect2: error: ld returned 1 exit status

Tried also gcc-4_7 branch and the result is the same like above.

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