avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] Linker segfault when linking ELF


From: Thomas Phillips
Subject: [avr-libc-dev] Linker segfault when linking ELF
Date: Mon, 9 Jan 2012 16:36:11 +1300

Hi there.
I am developing on the Teensy, and whenever I try to link the resulting ELF
it has a segfault

-------- begin --------
avr-gcc (GCC) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Compiling C: example.c
avr-gcc -c -mmcu=at90usb1286       -I. -gdwarf-2 -DF_CPU=16000000UL -Os
-funsigned-char -funsigned-bitfields -ffunction-sections -fpack-struct
-fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./example.lst
-std=gnu99 -MMD -MP -MF .dep/example.o.d example.c -o example.o

Compiling C: uart.c
avr-gcc -c -mmcu=at90usb1286       -I. -gdwarf-2 -DF_CPU=16000000UL -Os
-funsigned-char -funsigned-bitfields -ffunction-sections -fpack-struct
-fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./uart.lst  -std=gnu99
-MMD -MP -MF .dep/uart.o.d uart.c -o uart.o

Linking: example.elf
avr-gcc -mmcu=at90usb1286       -I. -gdwarf-2 -DF_CPU=16000000UL -Os
-funsigned-char -funsigned-bitfields -ffunction-sections -fpack-struct
-fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=example.o  -std=gnu99
-MMD -MP -MF .dep/example.elf.d example.o uart.o --output example.elf
-Wl,-Map=example.map,--cref -Wl,--relax -Wl,--gc-sections     -lm
collect2: ld terminated with signal 11 [Segmentation fault]
make: *** [example.elf] Error 1

I am running arch linux, with gcc-avr, binutils-avr and avr-libc

Is this an error on my end, or is there something wrong with

Thanks
Thomas Phillips


reply via email to

[Prev in Thread] Current Thread [Next in Thread]