20f7bfb1387f383c2221c937b2b05ac42a1b7a3a
[seabios.git] / src / rombios.lds.S
1 // Linker definitions for merging 16 and 32 bit code
2 //
3 // Copyright (C) 2008,2009  Kevin O'Connor <kevin@koconnor.net>
4 //
5 // This file may be distributed under the terms of the GNU LGPLv3 license.
6
7 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
8 OUTPUT_ARCH("i386")
9 ENTRY(post32)
10 SECTIONS
11 {
12         .text code32_start : {
13                 *(.text)
14
15                 . = code16_start ;
16                 *(.text16)
17                 final_code16_end = . ;
18                 }
19         /DISCARD/ : { *(.discard*) *(.eh_frame) }
20 }