[Bug binutils/13894] ppc64 objdump -S segfault

2012-03-23 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13894

--- Comment #1 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-03-23 06:41:28 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:amo...@sourceware.org2012-03-23 06:41:21

Modified files:
bfd: ChangeLog elf64-ppc.c 

Log message:
PR binutils/13894
* elf64-ppc.c (opd_entry_value): Read full symbol table when
sym hashes unavailable.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srcr1=1.5635r2=1.5636
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-ppc.c.diff?cvsroot=srcr1=1.377r2=1.378

-- 
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/13894] ppc64 objdump -S segfault

2012-03-23 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13894

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
URL||http://sourceware.org/ml/bi
   ||nutils/2012-03/msg00299.htm
   ||l
 Resolution||FIXED

--- Comment #2 from Alan Modra amodra at gmail dot com 2012-03-23 06:43:09 
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 ld/13855] internal error, aborting at elf64-x86-64.c line 3396 in elf_x86_64_relocate_section

2012-03-23 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13855

--- Comment #6 from H.J. Lu hjl.tools at gmail dot com 2012-03-23 19:33:44 
UTC ---
util/build-chromium.sh doesn't work with GCC 4.6 on my machine.

-- 
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/13897] New: objdump (ppc64) performance has severely degraded in the binutils 2.22.52_0322

2012-03-23 Thread johnhrusso at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13897

 Bug #: 13897
   Summary: objdump (ppc64) performance has severely degraded in
the binutils 2.22.52_0322
   Product: binutils
   Version: 2.22
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassig...@sourceware.org
ReportedBy: johnhru...@gmail.com
Classification: Unclassified


Created attachment 6300
  -- http://sourceware.org/bugzilla/attachment.cgi?id=6300
tarball containing ELF file I used to test.

We're disassembling the attached file with:

./objdump -d -S -x mtwx53252-core0.elf  out

With binutils 2.22.51, this disassembly happens in

real0m6.501s
user0m6.475s
sys0m0.018s

With binutils 2.22.52 0322 snaphsot, I get:

real12m23.685s
user9m0.350s
sys3m19.035s

12 minutes now vs. 6 seconds previously.

The -S flag is key, performance is fine if -S is excluded from the command.

target:
mtwx53252-core0.elf: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500,
version 1 (SYSV), statically linked, not stripped

host:
./objdump -v
GNU objdump (GNU Binutils) 2.22.52.20120322

uname -a
Linux  2.6.35.6-45.fc14.x86_64 #1 SMP Mon Oct 18 23:57:44 UTC 2010 x86_64
x86_64 x86_64 GNU/Linux

-- 
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/13897] objdump (ppc64) performance has severely degraded in the binutils 2.22.52_0322

2012-03-23 Thread johnhrusso at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13897

John Russo johnhrusso at gmail dot com changed:

   What|Removed |Added

 Target||ELF 64-bit MSB executable,
   ||64-bit PowerPC
 CC||johnhrusso at gmail dot com
   Host||Linux
   ||2.6.35.6-45.fc14.x86_64

-- 
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/13891] Binutils is impossible to static link due to broken libtool behavior

2012-03-23 Thread vapier at gentoo dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=13891

Mike Frysinger vapier at gentoo dot org changed:

   What|Removed |Added

URL||http://sourceware.org/ml/bi
   ||nutils/2011-08/msg00163.htm
   ||l
 CC||vapier at gentoo dot org

--- Comment #3 from Mike Frysinger vapier at gentoo dot org 2012-03-24 
03:54:44 UTC ---
issue was mentioned on the mailing list sometime ago, and a trivial workaround
posted.  all in all, this sounds like it should be brought up on the libtool
mailing list rather than here considering the issue isn't specific to binutils
at all.  grab any package using libtool and you'd have the same problem.

-- 
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/13899] New: [avr]: Wrong relaxation of R_AVR_16_PM with gs()

2012-03-23 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13899

 Bug #: 13899
   Summary: [avr]: Wrong relaxation of R_AVR_16_PM with gs()
   Product: binutils
   Version: 2.23 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassig...@sourceware.org
ReportedBy: g...@gcc.gnu.org
CC: eric.wedding...@atmel.com
Classification: Unclassified
Target: avr


Created attachment 6301
  -- http://sourceware.org/bugzilla/attachment.cgi?id=6301
bug-relax.zip: Files to reproduce

The linker computes wrong values for gs() initializers like from text.s:

.globalmenuitem_text
.section.progmem.data,a,@progbits
.typemenuitem_text, @object
.sizemenuitem_text, 14
menuitem_text:
.wordgs(onPixel_text)
.wordgs(onRedraw_text)
.wordgs(onKey_text)
.wordgs(onEnter_text)

I tried to work out a small example, but with no avail.
So I post the whole project.

Steps to reproduce:

1) Unpack the attached zip file. It inflates to ./bug-relax/

2) cd ./bug-relax

3) There are assembler sources in the directory and a small Makefile. Run
   make obj all

4) This generates two files bug.elf and bug.lst
   bug.lst is diff'ed against good.lst generated with avr-ld 2.21

All in all, the make obj all will print something like

avr-as -mmcu=atmega168 frac8.ss -o frac8-asm.o
avr-as -mmcu=atmega168 parith-16.ss -o parith-16-asm.o
...
avr-ld -m avr5 -Tdata 0x800100 crtm168.o -v -o bug.elf --relax ...
GNU ld (GNU Binutils) 2.22.52.20120322

diff -u1 good.lst bug.lst

-good.elf: file format elf32-avr
+bug.elf: file format elf32-avr

@@ -81,3 +81,3 @@
 008e menuitem_text:
-  8e:78 06 23 06 af 05 18 06 19 01 28 04 4f 01
+  8e:7c 06 24 06 af 05 18 06 19 01 28 04 4f 01

@@ -163,3 +163,3 @@
 0299 menuitem_asteroids:
- 299:61 0c 6a 0d 1a 0b de 0a 8f 02 08 02 e8 02
+ 299:70 0c 7f 0d 1b 0b de 0a 8f 02 08 02 e8 02

@@ -217,3 +217,3 @@
 03ae menuitem_snake:
- 3ae:92 11 7d 10 24 0f 58 0f 6d 03 52 02 bc 03
+ 3ae:92 11 7f 10 24 0f 58 0f 6d 03 52 02 bc 03

@@ -263,3 +263,3 @@
 0491 menuitem_schoner:
- 491:9a 14 e3 13 18 14 09 14 02 01 00 08 9f 04
+ 491:9b 14 e3 13 18 14 09 14 02 01 00 08 9f 04


In text.s: menuitem_text the first enty is
   .wordgs(onPixel_text)

This function is located at word address 0x0678:
   0cf0 onPixel_text

But bug.lst has 0x67c as printed in the diff 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