[arm-gnu] Segfault running to assemble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] Segfault running to assemble



I have some assembley code here that compiled fine with the OpenEmbedded toolchain, but I am trying to switch to the CodeCourcery once, since building OE is cumbersome. There's a problem, though: assembling the startup code causes gas to segfault!

Anyone know why this is happening? I didn't write the code myself, I'm just an ARM amateur.

Here's the code:
http://andrewpullin.org/tools/arm/start.S

And the invocation of gcc (from makefile) yields:
arm-none-eabi-gcc -E -Wa,-gstabs -D__ASSEMBLY__ -g -DDEBUG -Os -fno-strict-aliasing -fno-common -ffixed-r8 -ffunction-sections -msoft-float -Wcast-align -Wall -D__KERNEL__ -DTEXT_BASE= -fno-builtin -ffreestanding -isystem /opt/arm-2010q1/bin/../lib/gcc/arm-none-eabi/4.4.1/include -pipe -march=armv4t -mlong-calls -mtune=arm7tdmi-s -DCONFIG_ARM -D__ARM__ -mthumb-interwork -DUSE_INTS -DUSE_ROM_VECTS -DUSE_ROM_VARS -o ../src/start-romvars.s ../src/start.S

arm-none-eabi-gcc -Wa,-gstabs -D__ASSEMBLY__ -g -DDEBUG -Os -fno-strict-aliasing -fno-common -ffixed-r8 -ffunction-sections -msoft-float -Wcast-align -Wall -D__KERNEL__ -DTEXT_BASE= -fno-builtin -ffreestanding -isystem /opt/arm-2010q1/bin/../lib/gcc/arm-none-eabi/4.4.1/include -pipe -march=armv4t -mlong-calls -mtune=arm7tdmi-s -DCONFIG_ARM -D__ARM__ -mthumb-interwork -c -o ../src/start-romvars.o ../src/start-romvars.s

arm-none-eabi-gcc: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See <https://support.codesourcery.com/GNUToolchain/> for instructions.

Thanks,
Andrew