1 /* -----------------------------------------------------------------------
3 * Copyright 2008-2009 H. Peter Anvin - All Rights Reserved
4 * Copyright 2009 Intel Corporation; author: H. Peter Anvin
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
9 * Boston MA 02110-1301, USA; either version 2 of the License, or
10 * (at your option) any later version; incorporated herein by reference.
12 * ----------------------------------------------------------------------- */
15 * Linker script for the SYSLINUX core
18 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
25 ImageBase = .; /* For gnu-efi's crt0 */
27 . = SEGMENT_START("text-segment", 0) + SIZEOF_HEADERS;
49 KEEP (*(SORT(.ctors.*)))
56 KEEP (*(SORT(.dtors.*)))
144 /* the EFI loader doesn't seem to like a .bss section,
145 so we stick it all into .data: */
156 __bss_len = ABSOLUTE(__bss_end) - ABSOLUTE(__bss_start);
157 __bss_dwords = (__bss_len + 3) >> 2;
161 /* Very large objects which don't need to be zeroed */
172 /* Stuff we don't need... */