I found this out while trying to build a cross-gcj compiler for ARM targets: when using binutils 2.20 the build fails at libffi because of this error:
libtool: compile: /var/tmp/cross/arm-carel-linux-gnu/portage/cross-arm-carel-linux-gnu/gcc-4.3.4/work/build/./gcc/xgcc -B/var/tmp/cross/arm-carel-linux-gnu/portag e/cross-arm-carel-linux-gnu/gcc-4.3.4/work/build/./gcc/ -B/usr/arm-carel-linux-gnu/bin/ -B/usr/arm-carel-linux-gnu/lib/ -isystem /usr/arm-carel-linux-gnu/include - isystem /usr/arm-carel-linux-gnu/sys-include -I. -I/var/tmp/cross/arm-carel-linux-gnu/portage/cross-arm-carel-linux-gnu/gcc-4.3.4/work/gcc-4.3.4/libffi/include -Ii nclude -I/var/tmp/cross/arm-carel-linux-gnu/portage/cross-arm-carel-linux-gnu/gcc-4.3.4/work/gcc-4.3.4/libffi/src -O2 -g -O2 -pipe -c /var/tmp/cross/arm-carel-linu x-gnu/portage/cross-arm-carel-linux-gnu/gcc-4.3.4/work/gcc-4.3.4/libffi/src/arm/sysv.S -fPIC -DPIC -o src/arm/.libs/sysv.o /var/tmp/cross/arm-carel-linux-gnu/portage/cross-arm-carel-linux-gnu/gcc-4.3.4/work/gcc-4.3.4/libffi/src/arm/sysv.S: Assembler messages: /var/tmp/cross/arm-carel-linux-gnu/portage/cross-arm-carel-linux-gnu/gcc-4.3.4/work/gcc-4.3.4/libffi/src/arm/sysv.S:238: Error: missing .fnstart before unwinding directive Tracking this down, seems like it doesn't like .pad directive if it's not prefixed by the @ symbol. Unfortunately I'm not really much into ARM assembly so I can't tell what the problem is there. binutils 2.18 builds libffi perfectly fine as far as I can tell. I'm attaching two testcases that reduce the problem; testcase2.s is a reduced case as taken by sysv.S, while testcase3.s is a working alternative; I have no idea if they are meant to be the same though, I'm afraid. -- Summary: Suspicious error "missing .fnstart before unwinding directive" from libffi's ARM code Product: binutils Version: 2.20 Status: NEW Severity: normal Priority: P2 Component: gas AssignedTo: unassigned at sources dot redhat dot com ReportedBy: flameeyes at gmail dot com CC: bug-binutils at gnu dot org GCC host triplet: i686-pc-linux-gnu GCC target triplet: arm-*-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=11054 ------- 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