Symbol EE_stkfirst is out of address range

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Locked
eugenskt

Symbol EE_stkfirst is out of address range

Post by eugenskt »

Hi,

I have now integrated Erika in my project and try to solve linker errors. Unfortunately my breaking point is this linker error (see attachment). Do I understand it right variable EE_stkfirst is to far away from ee_activate.o? Is it a problem of near adressing? I hope someone has experience with this linker stuff.

Thanks!

Regards, Eugen
Attachments
Linker Error.png
Linker Error.png (175.05 KiB) Viewed 6555 times
eugenskt

Re: Symbol EE_stkfirst is out of address range

Post by eugenskt »

Hi,

I've solved this problem with this help http://www.tek-tips.com/viewthread.cfm?qid=1677386. _SDA_BASE_ was the problem. I just changed the .sdata with .data because the error message says something about _SDA_BASE_ and .data

Code: Select all

_SDA_BASE_ = ADDR(.data) + 0x7ff0;
__SDA_BASE_ = _SDA_BASE_;
As I said in other posts I only use the libee in my project. I do not use RTDruid for the whole project.

Regards, Eugen
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Symbol EE_stkfirst is out of address range

Post by paolo.gai »

it seems probably related to the fact that the crt0 you are using does not have a reference to the RAM limits... anyway i'm happy you solved the issue!

Ciao,

Paolo
eugenskt

Re: Symbol EE_stkfirst is out of address range

Post by eugenskt »

Hello,

a more elegant solution would be to use

Code: Select all

		EE_OPT = "__NO_APP__";
		EE_OPT = "EE_CONFIGURATED_LIB"; 
Then all stuff from eecfg.c would be related with all other code in the libee.a.

And the problem disappear :)

Regards, Eugen
Locked