Re: Binutils/ld: linker script does not work for AVR mega 0 series (avrxmega3)

2022-11-01 Thread Nick Clifton
Hi Konrad, +  data   (rw!x) : ORIGIN = 0x802000, LENGTH = 0x1 The fixed origin seems very dubious to me and I wasn't able to debug __DATA_REGION_LENGTH__. It is defined earlier on in script: [cut] I actually meant to ask: is there a way to debug the linker script? I.e. to output what

Re: Binutils/ld: linker script does not work for AVR mega 0 series (avrxmega3)

2022-11-01 Thread Konrad Rosenbaum
Hi, thanks for responding Nick. On 31/10/2022 15:57, Nick Clifton wrote: the linker fails on trying to arrange data/bss segments even with very few small variables. E.g.: Please could you file a bug report for this problem here:   https://sourceware.org/bugzilla/enter_bug.cgi?product=binutil

Re: Binutils/ld: linker script does not work for AVR mega 0 series (avrxmega3)

2022-10-31 Thread Nick Clifton
Hi Konrad, the linker fails on trying to arrange data/bss segments even with very few small variables. E.g.: Please could you file a bug report for this problem here: https://sourceware.org/bugzilla/enter_bug.cgi?product=binutils avr-g++ -Os -Wl,--gc-sections -B ~/tronic/atmel-compiler

Binutils/ld: linker script does not work for AVR mega 0 series (avrxmega3)

2022-10-23 Thread Konrad Rosenbaum
Hi, the linker fails on trying to arrange data/bss segments even with very few small variables. E.g.: avr-g++ -Os -Wl,--gc-sections -B ~/tronic/atmel-compiler-packs/mega/gcc/dev/atmega3208 -mmcu=atmega3208 -o fw.elf dimmer.o dmx.o input.o ledout.o pwm.o <...>/lib/gcc/avr/12.2.0/../../../../a