Kevin O'Connor | 1f2c307 | 2009-05-06 23:35:59 -0400 | [diff] [blame] | 1 | // Linker definitions for an option rom |
| 2 | // |
| 3 | // Copyright (C) 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(_optionrom_entry) |
| 10 | SECTIONS |
| 11 | { |
| 12 | .text 0 : { |
| 13 | *(.rom.header) |
| 14 | *(.text.*) |
| 15 | _rodata = . ; |
| 16 | *(.rodata.__func__.*) |
| 17 | *(.rodata.str1.1) |
| 18 | *(.data16.*) |
| 19 | } |
| 20 | |
| 21 | // Discard regular data sections to force a link error if |
| 22 | // 16bit code attempts to access data not marked with VAR16. |
| 23 | /DISCARD/ : { *(.text*) *(.rodata*) *(.data*) *(.bss*) *(COMMON) } |
| 24 | } |