[Bug binutils/11742] readelf.c: get_archive_member_name(): array subscript is above array bounds

2010-08-12 Thread nickc at redhat dot com

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2010-08-12 
13:11 ---
Subject: Bug 11742

CVSROOT:/cvs/src
Module name:src
Changes by: ni...@sourceware.org2010-08-12 13:11:12

Modified files:
binutils   : ChangeLog readelf.c 

Log message:
PR binutils/11742
* readelf.c (get_archive_member_name): Do not read beyond the end
of the ar_name field.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/ChangeLog.diff?cvsroot=src&r1=1.1667&r2=1.1668
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/readelf.c.diff?cvsroot=src&r1=1.510&r2=1.511


--- Additional Comments From nickc at redhat dot com  2010-08-12 13:13 
---
Hi Michael,

  Thanks for the bug report and patch.  I have checked your patch in along with
this changelog entry.

Cheers
  Nick

binutils/ChangeLog
2010-08-12  Michael Haubenwallner  

PR binutils/11742
* readelf.c (get_archive_member_name): Do not read beyond the end
of the ar_name field.


-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=11742

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

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


[Bug gas/11835] Infinite recursive loop in @FILE option

2010-08-12 Thread nickc at redhat dot com

--- Additional Comments From nickc at redhat dot com  2010-08-12 13:41 
---
Hi Chin,

  This is actually a bug in the libiberty library that is used to pre-parse the
assembler command line.  I have filed a bug report here:

  http://gcc.gnu.org/ml/gcc-patches/2010-08/msg00899.html

I have included a proposed patch in that bug report, so I hope that that will
resolve the problem.

Cheers
  Nick

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX


http://sourceware.org/bugzilla/show_bug.cgi?id=11835

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

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


[Bug binutils/11909] New: Some targets can't be compiled with gcc 4.5

2010-08-12 Thread hjl dot tools at gmail dot com
With --enable-targets=all --enable-64-bit-bfd,
I got

/bin/sh ./libtool --tag=CC   --mode=compile /usr/gcc-4.5/bin/gcc -DHAVE_CONFIG_H
-I. -I/export/gnu/import/git/binutils-compress/bfd -I.
-I/export/gnu/import/git/binutils-compress/bfd
-I/export/gnu/import/git/binutils-compress/bfd/../include  -DHAVE_all_vecs 
-DBINDIR='"/usr/local/bin"'  -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wshadow -Werror -g -O2 -MT coff-tic80.lo -MD -MP -MF .deps/coff-tic80.Tpo -c -o
coff-tic80.lo /export/gnu/import/git/binutils-compress/bfd/coff-tic80.c
cc1: warnings being treated as errors
In file included from 
/export/gnu/import/git/binutils-compress/bfd/coffcode.h:369:0,
 from 
/export/gnu/import/git/binutils-compress/bfd/coff-tic4x.c:79:
/export/gnu/import/git/binutils-compress/bfd/coffswap.h: In function
\u2018coff_swap_scnhdr_in\u2019:
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:769:25: error: array
subscript is below array bounds
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:771:25: error: array
subscript is below array bounds
/export/gnu/import/git/binutils-compress/bfd/coffswap.h: In function
\u2018coff_swap_scnhdr_out\u2019:
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:798:3: error: array
subscript is below array bounds
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:804:5: error: array
subscript is below array bounds
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:815:7: error: array
subscript is below array bounds
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:839:3: error: array
subscript is below array bounds
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:839:3: error: array
subscript is below array bounds
libtool: compile:  /usr/gcc-4.5/bin/gcc -DHAVE_CONFIG_H -I.
-I/export/gnu/import/git/binutils-compress/bfd -I.
-I/export/gnu/import/git/binutils-compress/bfd
-I/export/gnu/import/git/binutils-compress/bfd/../include -DHAVE_all_vecs
-DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wshadow -Werror -g -O2 -MT coff-tic80.lo -MD -MP -MF .deps/coff-tic80.Tpo -c
/export/gnu/import/git/binutils-compress/bfd/coff-tic80.c -o coff-tic80.o
make[6]: *** [coff-tic4x.lo] Error 1
make[6]: *** Waiting for unfinished jobs
cc1: warnings being treated as errors
In file included from 
/export/gnu/import/git/binutils-compress/bfd/coffcode.h:369:0,
 from
/export/gnu/import/git/binutils-compress/bfd/coff-tic54x.c:367:
/export/gnu/import/git/binutils-compress/bfd/coffswap.h: In function
\u2018coff_swap_scnhdr_in\u2019:
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:769:25: error: array
subscript is below array bounds
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:771:25: error: array
subscript is below array bounds
/export/gnu/import/git/binutils-compress/bfd/coffswap.h: In function
\u2018coff_swap_scnhdr_out\u2019:
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:798:3: error: array
subscript is below array bounds
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:804:5: error: array
subscript is below array bounds
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:815:7: error: array
subscript is below array bounds
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:839:3: error: array
subscript is below array bounds
/export/gnu/import/git/binutils-compress/bfd/coffswap.h:839:3: error: array
subscript is below array bounds
make[6]: *** [coff-tic54x.lo] Error 1

-- 
   Summary: Some targets can't be compiled with gcc 4.5
   Product: binutils
   Version: 2.21 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: hjl dot tools at gmail dot com
CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=11909

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

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


[Bug binutils/11843] ld long link times due to compute_bucket_count() choosing hash table size

2010-08-12 Thread nickc at redhat dot com

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2010-08-12 
16:23 ---
Subject: Bug 11843

CVSROOT:/cvs/src
Module name:src
Changes by: ni...@sourceware.org2010-08-12 16:23:33

Modified files:
bfd: ChangeLog elflink.c 

Log message:
PR ld/11843
* elflink.c (compute_bucket_count): Avoid futile long searches for
the best bucket size.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5101&r2=1.5102
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=src&r1=1.373&r2=1.374


--- Additional Comments From nickc at redhat dot com  2010-08-12 16:24 
---
Hi Todd,

  I have checked in your patch - thanks very much for creating it.

Cheers
  Nick

bfd/ChangeLog
2010-08-12  Todd Veldhuizen  

PR ld/11843
* elflink.c (compute_bucket_count): Avoid futile long searches for
the best bucket size.


-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=11843

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

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


[Bug binutils/11909] Some targets can't be compiled with gcc 4.5

2010-08-12 Thread hjl dot tools at gmail dot com

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2010-08-12 
17:50 ---
Subject: Bug 11909

CVSROOT:/cvs/src
Module name:src
Changes by: h...@sourceware.org 2010-08-12 17:49:42

Modified files:
bfd: ChangeLog Makefile.am Makefile.in 

Log message:
Disable -Werror on coff-tic4x.lo and coff-tic54x.lo.

2010-08-12  H.J. Lu  

PR binutils/11909
* Makefile.am (coff-tic4x.lo): New.  Disable -Werror.
(coff-tic54x.lo): Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5102&r2=1.5103
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/Makefile.am.diff?cvsroot=src&r1=1.250&r2=1.251
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/Makefile.in.diff?cvsroot=src&r1=1.278&r2=1.279


--- Additional Comments From hjl dot tools at gmail dot com  2010-08-12 
17:52 ---
Fixed.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=11909

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

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