blob: 40f3664b4e0e43f5314baa68e5cf526e246a06ea [file] [log] [blame]
Kevin O'Connor14458432009-05-23 18:21:18 -04001// 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
9OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
10OUTPUT_ARCH("i386")
11SECTIONS
12{
13
14// The actual placement of the 16bit sections is determined by the
15// script tools/layoutrom.py
Kevin O'Connorc0693942009-06-10 21:56:01 -040016#include "../out/romlayout16.lds"
Kevin O'Connor14458432009-05-23 18:21:18 -040017
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}