[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/14058] New: Internal overflow error, on >128kB FLASH with no rel
From: |
wek at host dot sk |
Subject: |
[Bug ld/14058] New: Internal overflow error, on >128kB FLASH with no relaxation |
Date: |
Thu, 03 May 2012 18:55:25 +0000 |
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: address@hidden
ReportedBy: address@hidden
CC: address@hidden
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 ld/14058] New: Internal overflow error, on >128kB FLASH with no relaxation,
wek at host dot sk <=
- [Bug ld/14058] Internal overflow error, on >128kB FLASH with no relaxation, wek at host dot sk, 2012/05/03
- [Bug ld/14058] Internal overflow error, on >128kB FLASH with no relaxation, gjl at gcc dot gnu.org, 2012/05/03
- [Bug ld/14058] Internal overflow error, on >128kB FLASH with no relaxation, konfera at efton dot sk, 2012/05/03
- [Bug ld/14058] Internal overflow error, on >128kB FLASH with no relaxation, gjl at gcc dot gnu.org, 2012/05/03
- [Bug ld/14058] Internal overflow error, on >128kB FLASH with no relaxation, gjl at gcc dot gnu.org, 2012/05/03
- [Bug ld/14058] Internal overflow error, on >128kB FLASH with no relaxation, konfera at efton dot sk, 2012/05/03
- [Bug ld/14058] Internal overflow error, on >128kB FLASH with no relaxation, konfera at efton dot sk, 2012/05/03
- [Bug ld/14058] Internal overflow error, on >128kB FLASH with no relaxation, gjl at gcc dot gnu.org, 2012/05/04
- [Bug ld/14058] Internal overflow error, on >128kB FLASH with no relaxation, konfera at efton dot sk, 2012/05/06