blob: a2c8fb2e21c031cb7f3dc1f4370af7b65afb900f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Michal Simek952d5142007-03-11 13:42:58 +01002/*
3 * (C) Copyright 2004 Atmark Techno, Inc.
4 *
5 * Yasushi SHOJI <yashi@atmark-techno.com>
Michal Simek952d5142007-03-11 13:42:58 +01006 */
7
8OUTPUT_ARCH(microblaze)
9ENTRY(_start)
10
11SECTIONS
12{
13 .text ALIGN(0x4):
14 {
15 __text_start = .;
Peter Tyserdb60bd22010-04-12 22:28:16 -050016 arch/microblaze/cpu/start.o (.text)
Michal Simek7d8314a2020-11-04 14:01:45 +010017 *(.text*)
Michal Simek952d5142007-03-11 13:42:58 +010018 __text_end = .;
19 }
20
21 .rodata ALIGN(0x4):
22 {
23 __rodata_start = .;
Trent Piepho4438e5e2009-02-18 15:22:05 -080024 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Michal Simek952d5142007-03-11 13:42:58 +010025 __rodata_end = .;
26 }
27
28 .data ALIGN(0x4):
29 {
30 __data_start = .;
Michal Simek7d8314a2020-11-04 14:01:45 +010031 *(.data*)
Michal Simek952d5142007-03-11 13:42:58 +010032 __data_end = .;
33 }
34
Michal Simek65e915c2014-05-08 16:08:44 +020035 .got ALIGN(4):
36 {
37 _got_start = .;
38 *(.got*)
39 . = ALIGN(4);
40 _got_end = .;
41 }
42
Marek Vasut607092a2012-10-12 10:27:03 +000043 . = ALIGN(4);
Andrew Scull5a9095c2022-05-30 10:00:04 +000044 __u_boot_list : {
45 KEEP(*(SORT(__u_boot_list*)));
Marek Vasut607092a2012-10-12 10:27:03 +000046 }
Michal Simek65e915c2014-05-08 16:08:44 +020047 __init_end = . ;
Marek Vasut607092a2012-10-12 10:27:03 +000048
Michal Simekf942ebb2022-06-24 14:15:01 +020049 . = ALIGN(4);
50 __rel_dyn_start = .;
51 .rela.dyn : {
52 *(.rela.dyn)
53 }
54 __rel_dyn_end = .;
55
56 . = ALIGN(4);
57 __dyn_sym_start = .;
58 .dynsym : {
59 *(.dynsym)
60 }
61 __dyn_sym_end = .;
62
Michal Simek952d5142007-03-11 13:42:58 +010063 .bss ALIGN(0x4):
64 {
65 __bss_start = .;
Michal Simekee64ff02009-08-14 17:02:35 +020066 *(.sbss)
67 *(.scommon)
Michal Simek7d8314a2020-11-04 14:01:45 +010068 *(.bss*)
Michal Simekee64ff02009-08-14 17:02:35 +020069 *(COMMON)
Selvamuthukumard2454ba2008-10-16 22:54:03 +053070 . = ALIGN(4);
Michal Simek952d5142007-03-11 13:42:58 +010071 __bss_end = .;
72 }
Ovidiu Panait76e51132021-11-30 18:33:49 +020073 _end = . ;
Michal Simek952d5142007-03-11 13:42:58 +010074}