[LinuxBIOS] changing how ldscript is made
Ronald G Minnich
rminnich at lanl.gov
Thu Jan 19 05:20:50 CET 2006
currently, the default makefile generates this for ldscript.ld
[rminnich at q fallback]$ more ../normal/ldscript.ld
INCLUDE ldoptions
INCLUDE /home/rminnich/src/LinuxBIOSv2/src/arch/i386/init/ldscript.lb
INCLUDE /home/rminnich/src/LinuxBIOSv2/src//cpu/x86/16bit/entry16.lds
INCLUDE /home/rminnich/src/LinuxBIOSv2/src//cpu/x86/32bit/entry32.lds
INCLUDE /home/rminnich/src/LinuxBIOSv2/src//cpu/x86/32bit/reset32.lds
INCLUDE /home/rminnich/src/LinuxBIOSv2/src//arch/i386/lib/id.lds
I find this intensely annoying, and there is no reason for it. I can
just as easily have the makefile do the include via 'cat', and then you
can see what the ldscript actually looks like. All the dependencies
still work fine as well. I just tested this here.
Any objection if I change the makefile so that you get something like this:
HAVE_MOVNTI = 0;
CONFIG_USE_INIT = 0;
HAVE_FALLBACK_BOOT = 1;
ROM_IMAGE_SIZE = 0x10000;
PAYLOAD_SIZE = 0x10000;
_ROMBASE = 0xffff0000;
_RESET = 0xffff0000;
.
.
.
TARGET(binary)
INPUT(linuxbios_ram.rom)
SECTIONS
{
.
.
.
SECTIONS {
. = (_ROMBASE + ROM_IMAGE_SIZE - 0x10) - (__id_end - __id_start);
.id (.): {
*(.id)
}
}
so you can actually see the script?
If not, I'll put this in the issue tracker.
ron
More information about the coreboot
mailing list