--- Additional Comments From Kai dot Tietz at onevision dot com 2007-06-14
08:50 ---
Tested and added patch to binutils.
See http://article.gmane.org/gmane.comp.gnu.binutils/33026
Cheers,
Kai
--
What|Removed |Added
---
--- Additional Comments From hjl at lucon dot org 2007-06-14 15:34 ---
This patch
http://sourceware.org/ml/binutils/2007-06/msg00104.html
works.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4590
--- You are receiving this mail because: ---
You are on the CC list for th
The following script returns an error "nonconstant expression for origin".
Any reasions why symbols are not allowed?
FLASH_START = 0x1;
FLASH_END = 0x2;
RAM_START = 0x8;
RAM_END = 0x9;
MEMORY {
FLASH : ORIGIN = FLASH_START, LENGTH = FLASH_END - FLASH_START
RAM :
Take the two simple sources:
t.c:
extern int t;
int f1(void)
{
return t;
}
int main(void)
{
return f() + f1();
}
t1.c:
int t;
int f(void)
{
return t;
}
---
When we compile (and link) them, we get:
14b0 <.f1>:
14b0: e9 22 80 38 ld r9,-327
--- Additional Comments From pinskia at gcc dot gnu dot org 2007-06-15
03:15 ---
Unused TOC entries are removed:
http://www.sourceware.org/ml/binutils/2004-11/msg00072.html
But it looks like Alan did not finish with the merging of the TOC.
--
What|Removed