PROBLEM DESCRIPTION under certain circumstances, Thumb interworking code is not generated correctlyby GNU LD. it is full of NULLs.
with arm-elf-ld: - if you have --gc-sections enabled - if you have asm in ARM mode with -mthumb-interwork - asm code contains an "ax" section .VhaInit with instructions - if you have a C file in Thumb mode -mthumb with -mthumb-interwork - if asm code is positioned before C generated code using --section-start whereas .text is positioned later with -Ttext - if you prevent garbage-collection of .VhaInit using instructions from .text to access .VhaInit then, the thumb interworking code is zero. WORKAROUND the interworking code is generated correctly if you place -Ttext before --section-start. -- Summary: Thumb interworking code zero under certain circumstances Product: binutils Version: 2.17 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: adsouzp at netscape dot net CC: bug-binutils at gnu dot org GCC host triplet: CYGWIN_NT-5.1 jenny 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygw GCC target triplet: ARM ELF arm7tdmi armv4t http://sourceware.org/bugzilla/show_bug.cgi?id=6727 ------- 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