Kevin O'Connor | 1445843 | 2009-05-23 18:21:18 -0400 | [diff] [blame] | 1 | // Placement of the 16bit 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 | #include "config.h" // BUILD_BIOS_ADDR |
| 8 | |
| 9 | OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") |
| 10 | OUTPUT_ARCH("i386") |
| 11 | SECTIONS |
| 12 | { |
| 13 | |
| 14 | // The actual placement of the 16bit sections is determined by the |
| 15 | // script tools/layoutrom.py |
Kevin O'Connor | c069394 | 2009-06-10 21:56:01 -0400 | [diff] [blame] | 16 | #include "../out/romlayout16.lds" |
Kevin O'Connor | 1445843 | 2009-05-23 18:21:18 -0400 | [diff] [blame] | 17 | |
| 18 | // Discard regular data sections to force a link error if |
| 19 | // 16bit code attempts to access data not marked with VAR16. |
| 20 | /DISCARD/ : { *(.text*) *(.rodata*) *(.data*) *(.bss*) *(COMMON) } |
| 21 | } |