2 * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
3 * Scott McNutt <smcnutt@psyent.com>
5 * SPDX-License-Identifier: GPL-2.0+
10 OUTPUT_FORMAT("elf32-littlenios2")
16 . = CONFIG_SYS_MONITOR_BASE;
19 arch/nios2/cpu/start.o (.text)
23 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
30 /* CMD TABLE - sandwich this in between text and data so
31 * the initialization code relocates the command table as
32 * well -- admittedly, this is just pure laziness ;-)
37 KEEP(*(SORT(.u_boot_list*)));
40 /* INIT DATA sections - "Small" data (see the gcc -G option)
41 * is always gp-relative. Here we make all init data sections
42 * adjacent to simplify the startup code -- and provide
43 * the global pointer for gp-relative access.
54 _gp = .; /* Global pointer addr */
68 /* UNINIT DATA - Small uninitialized data is first so it's
69 * adjacent to sdata and can be referenced via gp. The normal
70 * bss follows. We keep it adjacent to simplify init code.
93 /* DEBUG -- symbol table, string table, etc. etc.
95 .stab 0 : { *(.stab) }
96 .stabstr 0 : { *(.stabstr) }
97 .stab.excl 0 : { *(.stab.excl) }
98 .stab.exclstr 0 : { *(.stab.exclstr) }
99 .stab.index 0 : { *(.stab.index) }
100 .stab.indexstr 0 : { *(.stab.indexstr) }
101 .comment 0 : { *(.comment) }
102 .debug 0 : { *(.debug) }
103 .line 0 : { *(.line) }
104 .debug_srcinfo 0 : { *(.debug_srcinfo) }
105 .debug_sfnames 0 : { *(.debug_sfnames) }
106 .debug_aranges 0 : { *(.debug_aranges) }
107 .debug_pubnames 0 : { *(.debug_pubnames) }
108 .debug_info 0 : { *(.debug_info) }
109 .debug_abbrev 0 : { *(.debug_abbrev) }
110 .debug_line 0 : { *(.debug_line) }
111 .debug_frame 0 : { *(.debug_frame) }
112 .debug_str 0 : { *(.debug_str) }
113 .debug_loc 0 : { *(.debug_loc) }
114 .debug_macinfo 0 : { *(.debug_macinfo) }
115 .debug_weaknames 0 : { *(.debug_weaknames) }
116 .debug_funcnames 0 : { *(.debug_funcnames) }
117 .debug_typenames 0 : { *(.debug_typenames) }
118 .debug_varnames 0 : { *(.debug_varnames) }