1 /* MN10300 Main kernel linker script
3 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
11 #define __VMLINUX_LDS__
12 #include <asm-generic/vmlinux.lds.h>
13 #include <asm/thread_info.h>
16 OUTPUT_FORMAT("elf32-am33lin", "elf32-am33lin", "elf32-am33lin")
20 #ifndef CONFIG_MN10300_CURRENT_IN_E2
25 . = CONFIG_KERNEL_TEXT_ADDRESS;
28 _text = .; /* Text and read-only data */
39 _etext = .; /* End of text section */
47 RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
50 /* might get freed after init */
52 .smp_locks : AT(ADDR(.smp_locks) - LOAD_OFFSET) {
58 /* will be freed after init */
59 . = ALIGN(PAGE_SIZE); /* Init code and data */
61 INIT_TEXT_SECTION(PAGE_SIZE)
64 __alt_instructions = .;
65 .altinstructions : { *(.altinstructions) }
66 __alt_instructions_end = .;
67 .altinstr_replacement : { *(.altinstr_replacement) }
68 /* .exit.text is discard at runtime, not link time, to deal with references
69 from .altinstructions and .eh_frame */
70 .exit.text : { EXIT_TEXT; }
71 .exit.data : { EXIT_DATA; }
76 /* freed after init ends here */
78 BSS_SECTION(0, PAGE_SIZE, 4)
82 /* This is where the kernel creates the early boot page tables */
90 /* Sections to be discarded */