blob: 61a04c4623fc4d8aa2774cf1d54c6a517f020724 [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 ;
Kevin O'Connord2899772008-07-06 09:56:14 -040018 *(.text16)
Kevin O'Connor711ddc62009-01-17 15:17:34 -050019 final_code16_end = . ;
Kevin O'Connord2899772008-07-06 09:56:14 -040020 }
Kevin O'Connor202024a2009-01-17 10:41:28 -050021 /DISCARD/ : { *(.discard*) }
Kevin O'Connord2899772008-07-06 09:56:14 -040022}