X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Frombios.lds.S;h=3d59fad4b531b910547fe7acc8e3563e026518b1;hb=126eac646d28bed641643978de1dc2fd45b4fc88;hp=16347f65c364dbd477e30c9ef7ca19ebc0e87fdb;hpb=d28997715307a0c44d727f8099b4ac88bf95b1ef;p=seabios.git diff --git a/src/rombios.lds.S b/src/rombios.lds.S index 16347f6..3d59fad 100644 --- a/src/rombios.lds.S +++ b/src/rombios.lds.S @@ -1,29 +1,24 @@ // Linker definitions for merging 16 and 32 bit code // -// Copyright (C) 2008 Kevin O'Connor +// Copyright (C) 2008,2009 Kevin O'Connor // -// This file may be distributed under the terms of the GNU GPLv3 license. - -#include "config.h" +// This file may be distributed under the terms of the GNU LGPLv3 license. OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH("i386") -ENTRY(post32); +ENTRY(post32) SECTIONS { .text code32_start : { - *(.text) + *(.text32) + *(.data32.version) . = code16_start ; - final_code16_start = . ; *(.text16) - - . = code16_fixed_start ; - final_code16_fixed_start = . ; - *(.text16.fixed.addr) + final_code16_end = . ; } - - .bss __bss_start : { - *(.bss) + /DISCARD/ : { + *(.text*) *(.data*) *(.bss*) *(.rodata*) + *(COMMON) *(.discard*) *(.eh_frame) } }