[Bug binutils/14779] readelf.c:403:3: error: unknown type name 'mbstate_t'

2012-10-30 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14779

--- Comment #1 from Nick Clifton nickc at redhat dot com 2012-10-30 12:02:14 
UTC ---
Created attachment 6710
  -- http://sourceware.org/bugzilla/attachment.cgi?id=6710
Proposed 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


[Bug binutils/14779] readelf.c:403:3: error: unknown type name 'mbstate_t'

2012-10-30 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14779

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 Status|NEW |WAITING

--- Comment #2 from Nick Clifton nickc at redhat dot com 2012-10-30 12:03:05 
UTC ---
Hi John,

  Please could you try out the uploaded patch and let me know if it works for
you.

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/14779] readelf.c:403:3: error: unknown type name 'mbstate_t'

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

--- Comment #3 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-10-30 12:45:08 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:ni...@sourceware.org2012-10-30 12:44:58

Modified files:
bfd: ChangeLog elf-bfd.h elf32-arm.c elflink.c 
binutils   : ChangeLog bfdtest1.c config.in configure 
 configure.in readelf.c 
elfcpp : ChangeLog arm.h 
gas/doc: as.texinfo 
gold   : ChangeLog arm.cc 
include/elf: ChangeLog arm.h 
ld/testsuite   : ChangeLog 
ld/testsuite/ld-arm: arm-elf.exp 

Log message:
bfd:
* elf32-arm.c (elf32_arm_print_private_bfd_data): Recognise and
display the new ARM hard-float/soft-float ABI flags for EABI_VER5
(elf32_arm_post_process_headers): Add the hard-float/soft-float
ABI flag as appropriate for ET_DYN/ET_EXEC in EABI_VER5.

binutils:
* readelf.c (decode_ARM_machine_flags): Recognise and display the
new ARM hard-float/soft-float ABI flags for EABI_VER5. Split out
the code for EABI_VER4 and EABI_VER5 to allow this.

elfcpp:
* arm.h: New enum for EABI soft- and hard-float flags.

gold:
* gold.cc (Target_arm::do_adjust_elf_header): Add the
hard-float/soft-float ABI flag as appropriate for ET_DYN/ET_EXEC
in EABI_VER5.

include:
* elf/arm.h (EF_ARM_ABI_FLOAT_SOFT): New define.
(EF_ARM_ABI_FLOAT_HARD): Likewise.

ld/testsuite:
* ld-arm/eabi-hard-float.s: New test source.
* ld-arm/eabi-soft-float.s: New test source.
* ld-arm/eabi-hard-float.d: New test.
* ld-arm/eabi-soft-float.d: New test.
* ld-arm/eabi-soft-float-ABI4.d: New test.
* ld-arm/eabi-soft-float-r.d: New test.
* ld-arm/arm-elf.xp: Use the new tests.

binutils:
PR binutils/14779
* configure.in: Add checks for wchar.h and mbstate_t.
* config.in: Regenerate.
* configure: Regenerate.
* readelf.c: Conditionally include wchar.h.
(print_symbol): Conditionally use mbstate_t.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srcr1=1.5835r2=1.5836
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf-bfd.h.diff?cvsroot=srcr1=1.348r2=1.349
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-arm.c.diff?cvsroot=srcr1=1.300r2=1.301
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=srcr1=1.455r2=1.456
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/ChangeLog.diff?cvsroot=srcr1=1.1950r2=1.1951
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/bfdtest1.c.diff?cvsroot=srcr1=1.1r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/config.in.diff?cvsroot=srcr1=1.39r2=1.40
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/configure.diff?cvsroot=srcr1=1.152r2=1.153
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/configure.in.diff?cvsroot=srcr1=1.113r2=1.114
http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/readelf.c.diff?cvsroot=srcr1=1.583r2=1.584
http://sourceware.org/cgi-bin/cvsweb.cgi/src/elfcpp/ChangeLog.diff?cvsroot=srcr1=1.49r2=1.50
http://sourceware.org/cgi-bin/cvsweb.cgi/src/elfcpp/arm.h.diff?cvsroot=srcr1=1.6r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gas/doc/as.texinfo.diff?cvsroot=srcr1=1.259r2=1.260
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=srcr1=1.984r2=1.985
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/arm.cc.diff?cvsroot=srcr1=1.156r2=1.157
http://sourceware.org/cgi-bin/cvsweb.cgi/src/include/elf/ChangeLog.diff?cvsroot=srcr1=1.448r2=1.449
http://sourceware.org/cgi-bin/cvsweb.cgi/src/include/elf/arm.h.diff?cvsroot=srcr1=1.45r2=1.46
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=srcr1=1.1614r2=1.1615
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-arm/arm-elf.exp.diff?cvsroot=srcr1=1.97r2=1.98

-- 
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/14779] readelf.c:403:3: error: unknown type name 'mbstate_t'

2012-10-30 Thread dave.anglin at bell dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=14779

--- Comment #4 from dave.anglin at bell dot net 2012-10-30 18:05:55 UTC ---
Hi Nick,

On 10/30/2012 8:03 AM, nickc at redhat dot com wrote:
Please could you try out the uploaded patch and let me know if it works for
 you.
The patch works fine.

I'm going to retest removing --disable-werror.  Think there are
a couple of unrelated warnings that need fixing.

Thanks,
Dave

-- 
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/14788] New: trying to link simple ifunc test causes the linker to segfault with s390x targets

2012-10-30 Thread vapier at gentoo dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=14788

 Bug #: 14788
   Summary: trying to link simple ifunc test causes the linker to
segfault with s390x targets
   Product: binutils
   Version: 2.23
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassig...@sourceware.org
ReportedBy: vap...@gentoo.org
Classification: Unclassified
Target: s390x-linux-gnu


$ cat test.s 
.type foo,%gnu_indirect_function
foo:
.globl _start
_start:
.data
.quad foo

$ ./gas/as-new test.s -o test.o
$ gdb --args ./ld/ld-new test.o -o test
(gdb) r
Starting program:
/usr/local/gentoo/src/patchsets/binutils/binutils-2.23/build/ld/ld-new test.o
-o test

Program received signal SIGSEGV, Segmentation fault.
s390_elf_create_ifunc_sections (abfd=0x0, info=info@entry=0x709ac0 link_info)
at ../../bfd/elf-s390-common.c:41
41const struct elf_backend_data *bed = get_elf_backend_data (abfd);

this is vanilla binutils-2.23 built with `./configure --target=s390x-linux-gnu`

-- 
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/14779] readelf.c:403:3: error: unknown type name 'mbstate_t'

2012-10-30 Thread dave.anglin at bell dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=14779

--- Comment #5 from dave.anglin at bell dot net 2012-10-30 22:59:15 UTC ---
On 30-Oct-12, at 8:45 AM, cvs-commit at gcc dot gnu.org wrote:

   binutils:
PR binutils/14779
* configure.in: Add checks for wchar.h and mbstate_t.
* config.in: Regenerate.
* configure: Regenerate.
* readelf.c: Conditionally include wchar.h.
(print_symbol): Conditionally use mbstate_t.

Bug is also present in 2.23.

--
John David Anglindave.ang...@bell.net

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