[okl4-developer] Program link addresses
Joshua Root
jmr at cse.unsw.edu.au
Fri Jul 11 00:39:20 EST 2008
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")
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?
- Josh
More information about the Developer
mailing list