http://sourceware.org/bugzilla/show_bug.cgi?id=14058
Bug #: 14058 Summary: Internal overflow error, on >128kB FLASH with no relaxation Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sourceware.org ReportedBy: w...@host.sk CC: g...@gcc.gnu.org Classification: Unclassified Target: avr If there are gs()'d labels both below and above the 0x20000 boundary, during linking without -relax an "internal overflow error" is thrown. A simple minimum example is (filename y3a.S): .text .global main main: ret .global K1 .org 0x100 .L1: K1: nop .global K2 .org 0x20002 .L2: K2: nop .section .progmem .word gs(.L2) .word gs(.L1) Using "c:\Program Files\Atmel\AVRTools\WinAVR20100110\bin\avr-gcc" y3a.S -Os -DF_CPU=14745600UL -mmcu=atmega2561 -Wa,-adhlns=y3a.lst -Wl,-Map=y3a.map,--cref,--debug-stubs -o y3a.elf yields Adding stub with destination 0x20108 to the hash table. (Pre-Alloc run: 1) Adding stub with destination 0x206 to the hash table. (Pre-Alloc run: 1) Allocating 1 entries in the AMT Building one Stub. Address: 0x20110, Offset: 0x0 Final Stub section Size: 4 LD: Using jump stub (at 0x20000) with destination 0x2010c for reloc at address 0xcc. C:\Users\OM7ZZ\AppData\Local\Temp/cc4xOnGI.o:(.progmem+0x0): warning: internal error: out of range error Confirmed to persist on avr-ld v2.22 too. Further discussion at http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=707285#707285 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils