4609c1ca4ea9a8675e93d92e6ab5fc74163980e2
[seabios.git] / src / rombios16.lds.S
1 // Linker definitions for 16bit code
2 //
3 // Copyright (C) 2008  Kevin O'Connor <kevin@koconnor.net>
4 //
5 // This file may be distributed under the terms of the GNU GPLv3 license.
6
7 #include "config.h"
8
9 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
10 OUTPUT_ARCH("i386")
11 SECTIONS
12 {
13         .text16 ( _code32_code16_start - BUILD_BIOS_ADDR ) : {
14                 *(.text)
15                 *(.rodata*)
16                 *(.data)
17                 }
18
19         .text16.fixed.addr BUILD_START_FIXED : {
20                 *(.text.fixed.addr)
21                 }
22 }