blob: 56bf6436cb074ea2c3ac9bfae47188d769209b71 [file] [log] [blame]
Kevin O'Connord2899772008-07-06 09:56:14 -04001// Linker definitions for merging 16 and 32 bit code
2//
3// Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net>
4//
Kevin O'Connorb1b7c2a2009-01-15 20:52:58 -05005// This file may be distributed under the terms of the GNU LGPLv3 license.
Kevin O'Connord2899772008-07-06 09:56:14 -04006
7#include "config.h"
8
9OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
10OUTPUT_ARCH("i386")
11ENTRY(post32);
12SECTIONS
13{
14 .text code32_start : {
15 *(.text)
16
17 . = code16_start ;
18 final_code16_start = . ;
19 *(.text16)
20
21 . = code16_fixed_start ;
22 final_code16_fixed_start = . ;
23 *(.text16.fixed.addr)
24 }
Kevin O'Connor4a754b32008-12-28 21:37:27 -050025 /DISCARD/ : { *(.discard.var16) }
Kevin O'Connord2899772008-07-06 09:56:14 -040026}