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

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

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


From: Praveen, Vidya
Subject: Re: [avr-libc-dev] Linker segfault when linking ELF
Date: Mon, 9 Jan 2012 14:41:18 +0800

Hi 

Which version of binutils are you using? (you can do a -v on avr-ld to
find this). There's a known issue in the 2.22 .

http://sourceware.org/bugzilla/show_bug.cgi?id=12161

Regards
VP

> -----Original Message-----
> From: address@hidden
[mailto:avr-
> address@hidden On Behalf Of
Thomas
> Phillips
> Sent: Monday, January 09, 2012 9:06 AM
> To: address@hidden
> Subject: [avr-libc-dev] Linker segfault when linking ELF
> 
> 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
> _______________________________________________
> AVR-libc-dev mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/avr-libc-dev



reply via email to

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