Forum: Compiler & IDEs GCC 4.0.2 - could not find output section


von Sebastian Voitzsch (Gast)


Lesenswert?

Hallo zusammen,

beim Compilieren eines Programmes bekomme ich mit gcc-4.0.2 (SuSE RPM)
immer den Fehler

linux:/home/sebastian/src/fatyampp # make
avr-gcc -mmcu=atmega162
-Wl,--section-start=.bootloader=0x3b00,-Map=fatyampp.map -o
fatyampp.out *.o
/opt/cross/lib/gcc/avr/4.0.2/../../../../avr/bin/ld: fatyampp.out:
could not find output section .eeprom for input section .eeprom
/opt/cross/lib/gcc/avr/4.0.2/../../../../avr/bin/ld: final link failed:
Nonrepresentable section on output
make: *** [fatyampp.out] Fehler 1

Das Programm benutzt die Routinen eeprom_read_byte und
eeprom_write_byte. Unter gcc-3.3.2 funktioniert es einwandfrei.

Kann mir jemand sagen, wo ich nach dem Fehler suchen kann?

Danke,
Sebastian

von OldBug (Gast)


Lesenswert?

Vermutung: im Linkerscript

Schau mal nach, ob dort alle sections vorhanden sind.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.