[Bug libgcc/61843] New: Segmentation Fault on with avr-ld when linking with AVR C++ Linker

2014-07-18 Thread petermilani at qfr dot net.au
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61843

Bug ID: 61843
   Summary: Segmentation Fault on with avr-ld when linking with
AVR C++ Linker
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgcc
  Assignee: unassigned at gcc dot gnu.org
  Reporter: petermilani at qfr dot net.au

Linking a AVR C++ program throws the following:

make all 
Building target: RoverMowerProject.elf
Invoking: AVR C++ Linker
avr-g++ --cref -s -Os -o"RoverMowerProject.elf"  ./src/kalman_h/kalman.o 
./src/i2c/i2c.o  ./src/hmmv4_configmsg_h/hmmv4_configmsg.o  ./src/fPID_h/fPID.o
 ./src/Wire/utility/twi.o  ./src/Wire/Wire.o  ./src/SPI/SPI.o 
./src/RCswitch/RCSwitch.o  ./src/Qbot_configmsg_h/Qbot_configmsg.o 
./src/PID_h/PID.o  ./src/Velocity_Controller.o   -larduino_core -lm -lm
-Wl,-Map,RoverMowerProject.map,--cref -mrelax -Wl,--gc-sections
-Wl,--gc-sections -L"/home/petermilani/workspace/arduino_core/328P_16MHz"
-mmcu=atmega328p
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
make: *** [RoverMowerProject.elf] Error 1

let us know if you need more information.


[Bug libgcc/61843] Segmentation Fault on with avr-ld when linking with AVR C++ Linker

2014-07-18 Thread petermilani at qfr dot net.au
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61843

--- Comment #1 from peter  ---
version number:

$ avr-ld -v
GNU ld (GNU Binutils) 2.20.1.20100303


[Bug libgcc/61843] Segmentation Fault on with avr-ld when linking with AVR C++ Linker

2014-07-18 Thread petermilani at qfr dot net.au
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61843

--- Comment #2 from peter  ---
Possibly the same bug as:
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=printview&t=136763&start=0

segmentation fault goes away if I remove the -mrelax linker flag.