[Bug gold/12388] icf_test.sh and icf_safe_test.sh fail

2011-07-11 Thread rguenth at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12388

Richard Guenther  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #4 from Richard Guenther  2011-07-11 
11:27:55 UTC ---
The tests now work on the 2.21 branch.  The only gold fail on x86_64 (with GCC
4.6.1) is

PASS: exception_test
/bin/sh: line 1:  9918 Aborted "$tst" >
exception_static_test.lo
g-t 2>&1
FAIL: exception_static_test

and for i?86 I still get linker fails for them:

g++ -W -Wall-Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-fmerge-const
ants -O2 -g -Bgcctestdir/ -static  -o exception_static_test
exception_test_main.
o exception_test_1.o exception_test_2.o  -lz 
gcctestdir/ld:
/usr/lib/gcc/i586-suse-linux/4.6/../../../libc.a(errlist.o):(.deb
ug_info+0x1c3): warning: `sys_errlist' is deprecated; use `strerror' or
`strerro
r_r' instead
gcctestdir/ld:
/usr/lib/gcc/i586-suse-linux/4.6/../../../libc.a(errlist.o):(.deb
ug_info+0x1f1): warning: `sys_nerr' is deprecated; use `strerror' or
`strerror_r
' instead
gcctestdir/ld: /usr/lib/gcc/i586-suse-linux/4.6/../../../libc.a(elf-init.o): in 
function __libc_csu_irel:elf-init.c:94: error: undefined reference to
'__rel_ipl
t_end'
gcctestdir/ld: /usr/lib/gcc/i586-suse-linux/4.6/../../../libc.a(elf-init.o): in 
function __libc_csu_irel:elf-init.c:94: error: undefined reference to
'__rel_ipl
t_start'
gcctestdir/ld: /usr/lib/gcc/i586-suse-linux/4.6/../../../libc.a(elf-init.o): in 
function __libc_csu_irel:../sysdeps/i386/dl-irel.h:36: error: undefined
referenc
e to '__rel_iplt_start'
gcctestdir/ld: /usr/lib/gcc/i586-suse-linux/4.6/../../../libc.a(elf-init.o): in 
function __libc_csu_irel:../sysdeps/i386/dl-irel.h:33: error: undefined
referenc
e to '__rel_iplt_start'
gcctestdir/ld: /usr/lib/gcc/i586-suse-linux/4.6/../../../libc.a(elf-init.o): in 
function __libc_csu_irel:../sysdeps/i386/dl-irel.h:36: error: undefined
referenc
e to '__rel_iplt_start'
collect2: ld returned 1 exit status
make[5]: *** [exception_static_test] Error 1

similar for tls_static_test and tls_static_pic_test.

-- 
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/12978] ld generates broken ld.so on ia64

2011-07-11 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12978

--- Comment #2 from cvs-commit at gcc dot gnu.org  2011-07-11 13:54:56 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:h...@sourceware.org2011-07-11 13:54:52

Modified files:
bfd: ChangeLog elfnn-ia64.c 

Log message:
Fix a typo in elfnn-ia64.c (count_dyn_reloc).

2011-07-11  H.J. Lu  

PR ld/12978
* elfnn-ia64.c (count_dyn_reloc): Fix a typo.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5418&r2=1.5419
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elfnn-ia64.c.diff?cvsroot=src&r1=1.3&r2=1.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 gold/12979] gold does not support -Bgroup

2011-07-11 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12979

Ian Lance Taylor  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #2 from Ian Lance Taylor  2011-07-11 16:20:17 
UTC ---
Implemented.

-- 
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/12979] gold does not support -Bgroup

2011-07-11 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12979

--- Comment #1 from cvs-commit at gcc dot gnu.org  2011-07-11 16:19:58 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:i...@sourceware.org2011-07-11 16:19:51

Modified files:
gold   : layout.cc options.cc options.h target-reloc.h 
 ChangeLog 

Log message:
PR gold/12979
* options.h (class General_options): Add -Bgroup.
* options.cc (General_options::finalize): If -Bgroup is set,
default to --unresolved-symbols=report-all.
* layout.cc (Layout::finish_dynamic_section): Implement -Bgroup.
* target-reloc.h (issue_undefined_symbol_error): Handle
--unresolved-symbols=report-all.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/layout.cc.diff?cvsroot=src&r1=1.214&r2=1.215
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/options.cc.diff?cvsroot=src&r1=1.113&r2=1.114
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/options.h.diff?cvsroot=src&r1=1.167&r2=1.168
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/target-reloc.h.diff?cvsroot=src&r1=1.49&r2=1.50
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=src&r1=1.802&r2=1.803

-- 
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/12982] New: BFD linker LTO plugin makes stack executable by default

2011-07-11 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12982

   Summary: BFD linker LTO plugin makes stack executable by
default
   Product: binutils
   Version: 2.22 (HEAD)
   URL: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49703
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassig...@sources.redhat.com
ReportedBy: hjl.to...@gmail.com


$ cat xx.c
#include 
int main(int argc, char **argv) {
printf("Hallo\n");
return 0;
}
$ gcc -O2 -o xx xx.c
$ readelf -a xx|grep STACK
  GNU_STACK  0x00 0x 0x 0x0 0x0 RW  0x4
$ gcc -flto -O2 -o xx xx.c
$ readelf -a xx|grep STACK
  GNU_STACK  0x00 0x 0x 0x0 0x0 RWE 0x4

-flto should not create executable stacks.

-- 
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/12982] BFD linker LTO plugin makes stack executable by default

2011-07-11 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12982

--- Comment #1 from cvs-commit at gcc dot gnu.org  2011-07-11 18:39:16 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:h...@sourceware.org2011-07-11 18:39:13

Modified files:
bfd: ChangeLog elflink.c 

Log message:
Also skip BFD_PLUGIN when setting stack_flags.

2011-07-11  H.J. Lu  

PR ld/12982
* elflink.c (bfd_elf_size_dynamic_sections): Also skip BFD_PLUGIN
when setting stack_flags.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5420&r2=1.5421
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=src&r1=1.414&r2=1.415

-- 
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/12982] BFD linker LTO plugin makes stack executable by default

2011-07-11 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12982

H.J. Lu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #2 from H.J. Lu  2011-07-11 18:40:45 
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 binutils/12983] New: nm --line-numbers reports internal error with compressed debug sections

2011-07-11 Thread ccoutant at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12983

   Summary: nm --line-numbers reports internal error with
compressed debug sections
   Product: binutils
   Version: 2.22 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassig...@sources.redhat.com
ReportedBy: ccout...@google.com


$ cat foo.c
#include 

int main()
{
  printf("Hello, world!\n");
  return 0;
}
$ gcc -c -g -Wa,--compress-debug-sections foo.c
$ nm --line-numbers foo.o
 T mainBFD: BFD (GNU Binutils) 2.21.52.20110706 internal error,
aborting at ../../src/bfd/reloc.c line 6190 in
bfd_generic_get_relocated_section_contents

BFD: Please report this bug.

-- 
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/12983] nm --line-numbers reports internal error with compressed debug sections

2011-07-11 Thread ccoutant at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12983

Cary Coutant  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 AssignedTo|unassigned at sources dot   |ccoutant at google dot com
   |redhat.com  |

--- Comment #1 from Cary Coutant  2011-07-12 
00:07:43 UTC ---
Created attachment 5842
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5842
Patch to fix nm to decompress debug sections

-- 
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/12983] nm --line-numbers reports internal error with compressed debug sections

2011-07-11 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12983

--- Comment #2 from cvs-commit at gcc dot gnu.org  2011-07-12 04:47:52 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:ccout...@sourceware.org2011-07-12 04:47:49

Modified files:
binutils   : ChangeLog nm.c 

Log message:
PR 12983
* binutils/nm.c (display_file): Decompress debug sections when
printing line numbers.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/ChangeLog.diff?cvsroot=src&r1=1.1818&r2=1.1819
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/nm.c.diff?cvsroot=src&r1=1.67&r2=1.68

-- 
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/12983] nm --line-numbers reports internal error with compressed debug sections

2011-07-11 Thread ccoutant at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12983

Cary Coutant  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #3 from Cary Coutant  2011-07-12 
04:50:30 UTC ---
Fixed with attached patch.

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