blob: 533734d85d48ea9e3a94176995aaf657f9c49470 [file] [log] [blame]
Kevin O'Connor1f2c3072009-05-06 23:35:59 -04001// 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
7OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
8OUTPUT_ARCH("i386")
9ENTRY(_optionrom_entry)
10SECTIONS
11{
12 .text 0 : {
Kevin O'Connorc0693942009-06-10 21:56:01 -040013 KEEP(*(.rom.header))
Kevin O'Connor1f2c3072009-05-06 23:35:59 -040014 *(.text.*)
15 _rodata = . ;
Kevin O'Connora932b902014-07-01 09:50:04 -040016 *(.rodata*)
Kevin O'Connor1f2c3072009-05-06 23:35:59 -040017 *(.data16.*)
18 }
19
20 // Discard regular data sections to force a link error if
21 // 16bit code attempts to access data not marked with VAR16.
22 /DISCARD/ : { *(.text*) *(.rodata*) *(.data*) *(.bss*) *(COMMON) }
23}