Kevin O'Connor | d289977 | 2008-07-06 09:56:14 -0400 | [diff] [blame] | 1 | // Linker definitions for 32 bit code |
Kevin O'Connor | f076a3e | 2008-02-25 22:25:15 -0500 | [diff] [blame] | 2 | // |
3 | // Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net> | ||||
Kevin O'Connor | f076a3e | 2008-02-25 22:25:15 -0500 | [diff] [blame] | 4 | // |
5 | // This file may be distributed under the terms of the GNU GPLv3 license. | ||||
6 | |||||
7 | #include "config.h" | ||||
Kevin O'Connor | f076a3e | 2008-02-25 22:25:15 -0500 | [diff] [blame] | 8 | |
9 | OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") | ||||
Kevin O'Connor | 786502d | 2008-02-27 10:41:41 -0500 | [diff] [blame] | 10 | OUTPUT_ARCH("i386") |
Kevin O'Connor | f076a3e | 2008-02-25 22:25:15 -0500 | [diff] [blame] | 11 | SECTIONS |
12 | { | ||||
Kevin O'Connor | d289977 | 2008-07-06 09:56:14 -0400 | [diff] [blame] | 13 | . = BUILD_BIOS_ADDR ; |
14 | code32_start = . ; | ||||
15 | .text : { | ||||
Kevin O'Connor | 2fda7cb | 2008-07-05 20:41:53 -0400 | [diff] [blame] | 16 | *(.text) |
Kevin O'Connor | 9bcc527 | 2008-07-05 21:08:56 -0400 | [diff] [blame] | 17 | code32_rodata = . ; |
Kevin O'Connor | 2fda7cb | 2008-07-05 20:41:53 -0400 | [diff] [blame] | 18 | *(.rodata*) |
Kevin O'Connor | 9bcc527 | 2008-07-05 21:08:56 -0400 | [diff] [blame] | 19 | code32_data = . ; |
Kevin O'Connor | 2fda7cb | 2008-07-05 20:41:53 -0400 | [diff] [blame] | 20 | *(.data) |
Kevin O'Connor | 2fda7cb | 2008-07-05 20:41:53 -0400 | [diff] [blame] | 21 | . = ALIGN(16) ; |
Kevin O'Connor | eadf1ee | 2008-11-07 22:15:31 -0500 | [diff] [blame^] | 22 | __bss_start = . ; |
23 | *(.bss) | ||||
24 | *(COMMON) | ||||
25 | __bss_end = . ; | ||||
Kevin O'Connor | 2fda7cb | 2008-07-05 20:41:53 -0400 | [diff] [blame] | 26 | } |
Kevin O'Connor | d289977 | 2008-07-06 09:56:14 -0400 | [diff] [blame] | 27 | code32_end = . ; |
Kevin O'Connor | f076a3e | 2008-02-25 22:25:15 -0500 | [diff] [blame] | 28 | } |