[Bug binutils/13219] readelf segmentation fault in apply_relocations

2011-10-13 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13219

--- Comment #3 from Nick Clifton nickc at redhat dot com 2011-10-13 09:39:48 
UTC ---
*** Bug 13220 has been marked as a duplicate of 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 gas/13224] gcc 4.6.1 compilation issue on config/obj-elf.c : clone function with the default config -Werror=shadow,

2011-10-13 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13224

--- Comment #1 from Nick Clifton nickc at redhat dot com 2011-10-13 10:04:24 
UTC ---
Created attachment 5983
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5983
Rename clone to is_clone.

-- 
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/13224] gcc 4.6.1 compilation issue on config/obj-elf.c : clone function with the default config -Werror=shadow,

2011-10-13 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13224

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-10-13 10:05:28 
UTC ---
Hi Fred,

  I cannot reproduce this problem, but the fix seems fairly obvious.  Please
could you try out the uploaded patch and let me know if it the problem goes
away ?

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 binutils/13292] New: Binutils uses struct stat instead of #include sys/stat.h

2011-10-13 Thread pgquiles at elpauer dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=13292

 Bug #: 13292
   Summary: Binutils uses struct stat instead of #include
sys/stat.h
   Product: binutils
   Version: 2.23 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassig...@sourceware.org
ReportedBy: pgqui...@elpauer.org
Classification: Unclassified


Created attachment 5984
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5984
Fix

mingw-w64 recently implemented support for large files using
_FILE_OFFSET_BITS=64.

Binutils uses struct stat instead of #include sys/stat.h, which makes it
fail to compile with mingw-w64 trunk.

The attached patch fixes the issue.

-- 
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/13290] gold crashes when relinking a truncated object

2011-10-13 Thread ccoutant at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13290

Cary Coutant ccoutant at google dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE
 AssignedTo|ian at airs dot com |ccoutant at google dot com

--- Comment #1 from Cary Coutant ccoutant at google dot com 2011-10-13 
18:05:00 UTC ---
I've verified that the proposed fix for PR 13288 also fixes this problem:

../ld-new: fatal error: elfstrtab.cc-corrupted.o: attempt to map 2560 bytes at
offset 2520 exceeds size of file; the file may be corrupt

Closing this as a duplicate.

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

-- 
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/13288] gold silently accepts truncated ELF input

2011-10-13 Thread ccoutant at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13288

--- Comment #3 from Cary Coutant ccoutant at google dot com 2011-10-13 
18:05:00 UTC ---
*** Bug 13290 has been marked as a duplicate of 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/13295] New: Segfault and/or incorrect output in objdump when disassembling an ARM library

2011-10-13 Thread zoltan at bendor dot com.au
http://sourceware.org/bugzilla/show_bug.cgi?id=13295

 Bug #: 13295
   Summary: Segfault and/or incorrect output in objdump when
disassembling an ARM library
   Product: binutils
   Version: 2.21
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassig...@sourceware.org
ReportedBy: zol...@bendor.com.au
Classification: Unclassified


Created attachment 5988
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5988
The gcc support lbrary for arm-elf target

When disassembling a static library (libgcc.a, in this case) objdump 2.21.1
sometimes misses the THUMB/ARM mode switches i.e. disassembles ARM code for
THUMB or the other way around. Using -t --special-syms shows the mode switch
symbols at the correct places, yet the disassembly still misses them sometimes.

Objdump also crashes on the file, gdb shows this:

-
(gdb) run -d /usr/local/lib/gcc/arm-elf/4.5.3/libgcc.a

[lots os disassembled lines deleted]

_lshrdi3.o: file format elf32-littlearm


Disassembly of section .text:

 __aeabi_llsr:

Program received signal SIGSEGV, Segmentation fault.
0x0807b436 in get_map_sym_type (pc=0, info=value optimized out, little=1)
at ../../binutils-2.21.1/opcodes/arm-dis.c:4503
4503  if (info-section != NULL  info-section !=
info-symtab[n]-section)
(gdb) backtrace
#0  0x0807b436 in get_map_sym_type (pc=0, info=value optimized out, little=1)
at ../../binutils-2.21.1/opcodes/arm-dis.c:4503
#1  print_insn (pc=0, info=value optimized out, little=1)
at ../../binutils-2.21.1/opcodes/arm-dis.c:4684
#2  0x0804cc44 in disassemble_bytes (abfd=0x811ffe8, section=0x8128f9c, 
inf=0xb02c) at ../../binutils-2.21.1/binutils/objdump.c:1622
#3  disassemble_section (abfd=0x811ffe8, section=0x8128f9c, inf=0xb02c)
at ../../binutils-2.21.1/binutils/objdump.c:2051
#4  0x0808764c in bfd_map_over_sections (abfd=0x811ffe8, 
operation=0x804c630 disassemble_section, user_storage=0xb02c)
at ../../binutils-2.21.1/bfd/section.c:1274
#5  0x0804e3cc in disassemble_data (abfd=0x811ffe8)
at ../../binutils-2.21.1/binutils/objdump.c:2186
#6  dump_bfd (abfd=0x811ffe8) at ../../binutils-2.21.1/binutils/objdump.c:3087
#7  0x0804e8d7 in display_bfd (abfd=0x811ffe8)
at ../../binutils-2.21.1/binutils/objdump.c:3163
#8  0x0804e9eb in display_file (filename=value optimized out, 
target=value optimized out)
at ../../binutils-2.21.1/binutils/objdump.c:3217
#9  0x0804f55e in main (argc=3, argv=0xb254)
at ../../binutils-2.21.1/binutils/objdump.c:3490
(gdb) 
--

The configuration is --target=arm-elf or --target-eabi, the result is the same.
The host is x86-linux, the host compiler is gcc-4.5.1 with binutils 2.21.

Attached is the (ELF) libgcc.a which makes it crash.

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