[LinuxBIOS] changing how ldscript is made

yhlu yinghailu at gmail.com
Thu Jan 19 06:54:55 CET 2006


i'm ok, but please add

/* from src/arch/i386/lib/id.lds */

for each including.

YH

On 1/18/06, Ronald G Minnich <rminnich at lanl.gov> wrote:
> 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
>
> --
> linuxbios mailing list
> linuxbios at linuxbios.org
> http://www.openbios.org/mailman/listinfo/linuxbios
>




More information about the coreboot mailing list