Cleanup implementation of call16().
[seabios.git] / src / rombios32.lds.S
1 // Linker definitions for 32bit code
2 //
3 // Copyright (C) 2008  Kevin O'Connor <kevin@koconnor.net>
4 // Copyright (C) 2002  MandrakeSoft S.A.
5 //
6 // This file may be distributed under the terms of the GNU GPLv3 license.
7
8 #include "config.h"
9 #include "../out/rom16.offset.auto.h"
10
11 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
12 OUTPUT_ARCH("i386")
13 ENTRY(_start);
14 SECTIONS
15 {
16         . = (OFFSET_bios16c_end | 0xf0000);
17         . = ALIGN(16);
18         _text32_start = . ;
19         .text     : { *(.text)    }
20         .rodata    : { *(.rodata) }
21         . = ALIGN(16);
22         .data     : { *(.data)    }
23         __bss_start = . ;
24         .bss      : { *(.bss) *(COMMON) }
25         _end = . ;
26         __call16_from32 = (0xf0000 | OFFSET___call16_from32) ;
27         /DISCARD/ : { *(.stab)
28                      *(.stabstr)
29                      *(.comment)
30                      *(.note)
31                   }
32 }