Subject: toolchain/37040: src/gnu/dist/binutils/bfd/elf-{i386,x86-64}{32,64}.c break strict aliasing rules
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <bjs@NetBSD.org>
List: netbsd-bugs
Date: 09/30/2007 08:55:00
>Number:         37040
>Category:       toolchain
>Synopsis:       src/gnu/dist/binutils/bfd/elf-{i386,x86-64}{32,64}.c break strict aliasing rules
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 30 08:55:00 +0000 2007
>Originator:     Blair Sadewitz
>Release:        4.99.31
>Organization:
>Environment:
NetBSD 4.99.31/amd64
>Description:
two sections of code in both elf-i38632.c and elf-x86-64.c break strict aliasing rules.  I'm not sure if this causes any problems, but given that this is binutils, it should be fixed.
>How-To-Repeat:
build the aformenetioned sources with -Wstrict-aliasing.
>Fix:
http://bahar.aydogan.net/~blair/bfd-aliasing-fix.diff