GCC (SVN trunk 139772) generates code that GNU as (Binutils 2.18.50.20080827) refuses to assemble:
T=`${PWDCMD-pwd}`/ \ && cd ../.././gcc \ && make GCC_FOR_TARGET="/home/arm/build/gcc/./gcc/xgcc -B/home/arm/build/gcc/./gcc/ -B/home/arm/install/arm-elf/bin/ -B/home/arm/install/arm-elf/lib/ -isystem /home/arm/install/arm-elf/include -isystem /home/arm/install/arm-elf/sys-include" \ MULTILIB_CFLAGS="-g -O2" \ T=$T \ T_TARGET="${T}crtbegin.o ${T}crtend.o ${T}crti.o ${T}crtn.o" \ T_TARGET make[3]: Entering directory `/home/arm/build/gcc/gcc' /home/arm/build/gcc/./gcc/xgcc -B/home/arm/build/gcc/./gcc/ -B/home/arm/install/arm-elf/bin/ -B/home/arm/install/arm-elf/lib/ -isystem /home/arm/install/arm-elf/include -isystem /home/arm/install/arm-elf/sys-include -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -isystem ./include -I. -I/home/arm/build/gcc/arm-elf/libgcc -I/home/sam/Dev/gcc/gcc -I/home/sam/Dev/gcc/gcc//home/arm/build/gcc/arm-elf/libgcc -I/home/sam/Dev/gcc/gcc/../include -I/home/sam/Dev/gcc/gcc/../libcpp/include -I/home/sam/Dev/gcc/gcc/../libdecnumber -I/home/sam/Dev/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -g -O2 -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -Dinhibit_libc \ -c /home/sam/Dev/gcc/gcc/crtstuff.c -DCRT_BEGIN \ -o /home/arm/build/gcc/arm-elf/libgcc/crtbegin.o /tmp/ccSpvfmn.s: Assembler messages: /tmp/ccSpvfmn.s:47: Error: can't resolve `__DTOR_END__' {*UND* section} - `.LANCHOR1' {.data section} make[3]: *** [/home/arm/build/gcc/arm-elf/libgcc/crtbegin.o] Error 1 -- Summary: Cannot build crtbegin.o for ARM Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: assemble-failure Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sam at gcc dot gnu dot org GCC host triplet: i686-pc-linux-gnu GCC target triplet: arm-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37283