NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-arm/39668: thumb mode issue with ld from binutils 2.16.1 in -current, fixed by binutils upgrade to 2.18.50



>Number:         39668
>Category:       port-arm
>Synopsis:       thumb mode issue with ld from binutils 2.16.1 in -current, 
>fixed by binutils upgrade to 2.18.50
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 02 06:05:01 +0000 2008
>Originator:     Mikko Rapeli
>Release:        current
>Organization:
Teleca
>Environment:
NetBSD  4.99.72 NetBSD 4.99.72 (TISDP2420)
>Description:
Binutils 2.16.1 and patches in -current produces invalid jump table code to plt 
section which results in SIGILL's when running the thumb mode binaries. 
Userspace, including libc, were compiled to -mthumb where possible (and where 
not to ARM with -mthumb-interwork) according to build script available from 
http://mail-index.netbsd.org/port-arm/2008/09/19/msg000387.html .

For better explanation: 
http://mail-index.netbsd.org/port-arm/2008/09/05/msg000362.html
>How-To-Repeat:
Build libc and userspace in thumb, try running the binaries on ARM.
>Fix:
* use -mlong-calls as suggested in 
http://mail-index.netbsd.org/port-arm/2008/09/05/msg000362.html

or

* upgrade binutils to 2.18.50, patches available from 
http://mail-index.netbsd.org/tech-toolchain/2008/10/01/msg000437.html



Home | Main Index | Thread Index | Old Index