[okl4-developer] l4test linking
Tomas Hruby
thruby at cs.otago.ac.nz
Tue Sep 30 11:51:37 EST 2008
Hi,
I have a few questions about the linking stage.
First, if I compile with ENABLE_TRACEBUFFER=True linking fails because
of undefined reference to `tb_log_trace(unsigned long, char const*,
...)' since the build/pistachio/l4kernel/object/kdb/src/tracebuffer.o
file is passed to the linker after the files that reference this
symbol. Is it possible to change the order somehow?
Second, I am linking the boot image so that the load address is
0x400000 and everything else is under 0x700000. Usualy bootinfo is
placed at a 8k aligned address just behind l4test.bss, e.g. 0x6fc000.
However in certain cases the bootinfo is placed at 0xc00000 instead of
0x6fe000 which is the first available 8k aligned address. This
creashes the OpenBoot loader. Is there a way how to change this? My
guess is that the l4test heap is allocated to 0x700000 which may
somehow cause the problem. The kernel heap is usually at 0x800000 [4M]
Usually the l4test heap is at 0xc00000, right after the kernel heap,
but I have seem it allocated at 0x700000.
I can turn of the trabuffer to solve the first problem. I can also
work around the second problem but I prefer some nice solution.
Thanks for help, T.
More information about the Developer
mailing list