blob: a6afe1fc50889bafe19ad4ec649a20b997976741 [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
Kevin O'Connord2899772008-07-06 09:56:14 -04007OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
8OUTPUT_ARCH("i386")
9ENTRY(post32);
10SECTIONS
11{
12 .text code32_start : {
13 *(.text)
14
15 . = code16_start ;
Kevin O'Connord2899772008-07-06 09:56:14 -040016 *(.text16)
Kevin O'Connor711ddc62009-01-17 15:17:34 -050017 final_code16_end = . ;
Kevin O'Connord2899772008-07-06 09:56:14 -040018 }
Kevin O'Connor7cf17f22009-04-08 21:10:08 -040019 /DISCARD/ : { *(.discard*) *(.eh_frame) }
Kevin O'Connord2899772008-07-06 09:56:14 -040020}