[okl4-developer] Program link addresses
Joshua Root
jmr at cse.unsw.edu.au
Fri Jul 11 22:03:01 EST 2008
Geoffrey Lee wrote:
> On Fri, Jul 11, 2008 at 12:39:20AM +1000, Joshua Root wrote:
>> I'm building a simple boot image with the root server and one other
>> program. The program's SConscript looks like this:
>>
>> Import("*")
>> weaver = env.WeaverIguanaProgram()
>> sources=Split("tty_test.c ttyout.c")
>> obj = env.KengeProgram("tty_test", source=sources, weaver=weaver,
>> LIBS=["c", "l4"])
>> Return("obj")
>
>
> Josh -
>
>> When I use bootinfo to start the thread, it gives me an ip of 0x200000.
>> And indeed, if I disassemble image.elf, that is where the program is
>> linked. But in image.boot, it is located at 0x172000, and nothing is at
>> 0x200000, so of course I get an exception when starting the thread with
>> the given ip.
>>
>> Am I doing something wrong? How can I get the addresses to match up?
>
>
> While I cannot solve your immediate problem, please have a look
> at iguana/server/SConsript.
>
> The iguana/server program gets started as root server. For this,
> you should use the KengeProgram and WeaverRootProgram rather than
> the Iguana variants.
Right, and that's what I use for my root server. The SConscript I gave
is for the user program. Is there a more appropriate weaver for the user
program than WeaverIguanaProgram?
- Josh
More information about the Developer
mailing list