source: rtems/bsps/aarch64/shared/start/linkcmds.base @ 33c12d5

Last change on this file since 33c12d5 was 33c12d5, checked in by Sebastian Huber <sebastian.huber@…>, on 01/25/21 at 10:19:21

bsps: Support DWARF 5 sections

GCC 11 uses DWARF 5 by default.

  • Property mode set to 100644
File size: 16.2 KB
Line 
1/* SPDX-License-Identifier: BSD-2-Clause */
2
3/**
4 * @file
5 *
6 * @ingroup bsp_linker
7 *
8 * @brief Linker command base file.
9 */
10
11/*
12 * Copyright (C) 2020 On-Line Applications Research Corporation (OAR)
13 * Written by Kinsey Moore <kinsey.moore@oarcorp.com>
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 * 1. Redistributions of source code must retain the above copyright
19 *    notice, this list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright
21 *    notice, this list of conditions and the following disclaimer in the
22 *    documentation and/or other materials provided with the distribution.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
28 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 */
36
37ENTRY (_start)
38STARTUP (start.o)
39
40/*
41 * Global symbols that may be defined externally
42 */
43
44bsp_stack_align = DEFINED (bsp_stack_align) ? bsp_stack_align : 16;
45
46bsp_set_align = DEFINED (bsp_set_align) ? bsp_set_align : 8;
47
48bsp_stack_exception_size = DEFINED (bsp_stack_exception_size) ? bsp_stack_exception_size : 0;
49bsp_stack_exception_size = ALIGN (bsp_stack_exception_size, bsp_stack_align);
50
51bsp_vector_table_size = DEFINED (bsp_vector_table_size) ? bsp_vector_table_size : 64;
52
53bsp_section_xbarrier_align = DEFINED (bsp_section_xbarrier_align) ? bsp_section_xbarrier_align : 1;
54bsp_section_robarrier_align = DEFINED (bsp_section_robarrier_align) ? bsp_section_robarrier_align : 1;
55bsp_section_rwbarrier_align = DEFINED (bsp_section_rwbarrier_align) ? bsp_section_rwbarrier_align : 1;
56
57bsp_stack_hyp_size = DEFINED (bsp_stack_hyp_size) ? bsp_stack_hyp_size : 0;
58bsp_stack_hyp_size = ALIGN (bsp_stack_hyp_size, bsp_stack_align);
59
60MEMORY {
61        UNEXPECTED_SECTIONS : ORIGIN = 0xffffffff, LENGTH = 0
62}
63
64SECTIONS {
65        .start : ALIGN_WITH_INPUT {
66                bsp_section_start_begin = .;
67                KEEP (*(.bsp_start_text))
68                KEEP (*(.bsp_start_data))
69                bsp_section_start_end = .;
70        } > REGION_START AT > REGION_START
71        bsp_section_start_size = bsp_section_start_end - bsp_section_start_begin;
72
73        .xbarrier : ALIGN_WITH_INPUT {
74                . = ALIGN (bsp_section_xbarrier_align);
75        } > REGION_VECTOR AT > REGION_VECTOR
76
77        .text : ALIGN_WITH_INPUT {
78                bsp_section_text_begin = .;
79                *(.text.unlikely .text.*_unlikely)
80                *(.text .stub .text.* .gnu.linkonce.t.*)
81                /* .gnu.warning sections are handled specially by elf32.em.  */
82                *(.gnu.warning)
83                *(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)
84        } > REGION_TEXT AT > REGION_TEXT_LOAD
85        .init : ALIGN_WITH_INPUT {
86                KEEP (*(.init))
87        } > REGION_TEXT AT > REGION_TEXT_LOAD
88        .fini : ALIGN_WITH_INPUT {
89                KEEP (*(.fini))
90                bsp_section_text_end = .;
91        } > REGION_TEXT AT > REGION_TEXT_LOAD
92        bsp_section_text_size = bsp_section_text_end - bsp_section_text_begin;
93        bsp_section_text_load_begin = LOADADDR (.text);
94        bsp_section_text_load_end = bsp_section_text_load_begin + bsp_section_text_size;
95
96        .robarrier : ALIGN_WITH_INPUT {
97                . = ALIGN (bsp_section_robarrier_align);
98        } > REGION_RODATA AT > REGION_RODATA
99
100        .rodata : ALIGN_WITH_INPUT {
101                bsp_section_rodata_begin = .;
102                *(.rodata .rodata.* .gnu.linkonce.r.*)
103        } > REGION_RODATA AT > REGION_RODATA_LOAD
104        .rodata1 : ALIGN_WITH_INPUT {
105                *(.rodata1)
106        } > REGION_RODATA AT > REGION_RODATA_LOAD
107        .ARM.extab : ALIGN_WITH_INPUT {
108                *(.ARM.extab* .gnu.linkonce.armextab.*)
109        } > REGION_RODATA AT > REGION_RODATA_LOAD
110        .ARM.exidx : ALIGN_WITH_INPUT {
111                __exidx_start = .;
112                *(.ARM.exidx* .gnu.linkonce.armexidx.*)
113                __exidx_end = .;
114        } > REGION_RODATA AT > REGION_RODATA_LOAD
115        .eh_frame : ALIGN_WITH_INPUT {
116                KEEP (*(.eh_frame))
117        } > REGION_RODATA AT > REGION_RODATA_LOAD
118        .gcc_except_table : ALIGN_WITH_INPUT {
119                *(.gcc_except_table .gcc_except_table.*)
120        } > REGION_RODATA AT > REGION_RODATA_LOAD
121        .tdata : ALIGN_WITH_INPUT {
122                _TLS_Data_begin = .;
123                *(.tdata .tdata.* .gnu.linkonce.td.*)
124                _TLS_Data_end = .;
125        } > REGION_RODATA AT > REGION_RODATA_LOAD
126        .tbss : ALIGN_WITH_INPUT {
127                _TLS_BSS_begin = .;
128                *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon)
129                _TLS_BSS_end = .;
130        } > REGION_RODATA AT > REGION_RODATA_LOAD
131        _TLS_Data_size = _TLS_Data_end - _TLS_Data_begin;
132        _TLS_Data_begin = _TLS_Data_size != 0 ? _TLS_Data_begin : _TLS_BSS_begin;
133        _TLS_Data_end = _TLS_Data_size != 0 ? _TLS_Data_end : _TLS_BSS_begin;
134        _TLS_BSS_size = _TLS_BSS_end - _TLS_BSS_begin;
135        _TLS_Size = _TLS_BSS_end - _TLS_Data_begin;
136        _TLS_Alignment = MAX (ALIGNOF (.tdata), ALIGNOF (.tbss));
137        .preinit_array : ALIGN_WITH_INPUT {
138                PROVIDE_HIDDEN (__preinit_array_start = .);
139                KEEP (*(.preinit_array))
140                PROVIDE_HIDDEN (__preinit_array_end = .);
141        } > REGION_RODATA AT > REGION_RODATA_LOAD
142        .init_array : ALIGN_WITH_INPUT {
143                PROVIDE_HIDDEN (__init_array_start = .);
144                KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
145                KEEP (*(.init_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .ctors))
146                PROVIDE_HIDDEN (__init_array_end = .);
147        } > REGION_RODATA AT > REGION_RODATA_LOAD
148        .fini_array : ALIGN_WITH_INPUT {
149                PROVIDE_HIDDEN (__fini_array_start = .);
150                KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))
151                KEEP (*(.fini_array EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .dtors))
152                PROVIDE_HIDDEN (__fini_array_end = .);
153        } > REGION_RODATA AT > REGION_RODATA_LOAD
154        .data.rel.ro : ALIGN_WITH_INPUT {
155                *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*)
156                *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*)
157        } > REGION_RODATA AT > REGION_RODATA_LOAD
158        .jcr : ALIGN_WITH_INPUT {
159                KEEP (*(.jcr))
160        } > REGION_RODATA AT > REGION_RODATA_LOAD
161        .interp : ALIGN_WITH_INPUT {
162                *(.interp)
163        } > REGION_RODATA AT > REGION_RODATA_LOAD
164        .note.gnu.build-id : ALIGN_WITH_INPUT {
165                *(.note.gnu.build-id)
166        } > REGION_RODATA AT > REGION_RODATA_LOAD
167        .hash : ALIGN_WITH_INPUT {
168                *(.hash)
169        } > REGION_RODATA AT > REGION_RODATA_LOAD
170        .gnu.hash : ALIGN_WITH_INPUT {
171                *(.gnu.hash)
172        } > REGION_RODATA AT > REGION_RODATA_LOAD
173        .dynsym : ALIGN_WITH_INPUT {
174                *(.dynsym)
175        } > REGION_RODATA AT > REGION_RODATA_LOAD
176        .dynstr : ALIGN_WITH_INPUT {
177                *(.dynstr)
178        } > REGION_RODATA AT > REGION_RODATA_LOAD
179        .gnu.version : ALIGN_WITH_INPUT {
180                *(.gnu.version)
181        } > REGION_RODATA AT > REGION_RODATA_LOAD
182        .gnu.version_d : ALIGN_WITH_INPUT {
183                *(.gnu.version_d)
184        } > REGION_RODATA AT > REGION_RODATA_LOAD
185        .gnu.version_r : ALIGN_WITH_INPUT {
186                *(.gnu.version_r)
187        } > REGION_RODATA AT > REGION_RODATA_LOAD
188        .rel.dyn : ALIGN_WITH_INPUT {
189                *(.rel.init)
190                *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
191                *(.rel.fini)
192                *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
193                *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*)
194                *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
195                *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
196                *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
197                *(.rel.ctors)
198                *(.rel.dtors)
199                *(.rel.got)
200                *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
201                PROVIDE_HIDDEN (__rel_iplt_start = .);
202                *(.rel.iplt)
203                PROVIDE_HIDDEN (__rel_iplt_end = .);
204                PROVIDE_HIDDEN (__rela_iplt_start = .);
205                PROVIDE_HIDDEN (__rela_iplt_end = .);
206        } > REGION_RODATA AT > REGION_RODATA_LOAD
207        .rela.dyn : ALIGN_WITH_INPUT {
208                *(.rela.init)
209                *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
210                *(.rela.fini)
211                *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
212                *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
213                *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
214                *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
215                *(.rela.ctors)
216                *(.rela.dtors)
217                *(.rela.got)
218                *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
219                *(.rela.rtemsroset*)
220                *(.rela.rtemsrwset*)
221                PROVIDE_HIDDEN (__rel_iplt_start = .);
222                PROVIDE_HIDDEN (__rel_iplt_end = .);
223                PROVIDE_HIDDEN (__rela_iplt_start = .);
224                *(.rela.iplt)
225                PROVIDE_HIDDEN (__rela_iplt_end = .);
226        } > REGION_RODATA AT > REGION_RODATA_LOAD
227        .rel.plt : ALIGN_WITH_INPUT {
228                *(.rel.plt)
229        } > REGION_RODATA AT > REGION_RODATA_LOAD
230        .rela.plt : ALIGN_WITH_INPUT {
231                *(.rela.plt)
232        } > REGION_RODATA AT > REGION_RODATA_LOAD
233        .plt : ALIGN_WITH_INPUT {
234                *(.plt)
235        } > REGION_RODATA AT > REGION_RODATA_LOAD
236        .iplt : ALIGN_WITH_INPUT {
237                *(.iplt)
238        } > REGION_RODATA AT > REGION_RODATA_LOAD
239        .dynamic : ALIGN_WITH_INPUT {
240                *(.dynamic)
241        } > REGION_RODATA AT > REGION_RODATA_LOAD
242        .tm_clone_table : ALIGN_WITH_INPUT {
243                *(.tm_clone_table)
244        } > REGION_RODATA AT > REGION_RODATA_LOAD
245        .got : ALIGN_WITH_INPUT {
246                *(.got.plt) *(.igot.plt) *(.got) *(.igot)
247        } > REGION_RODATA AT > REGION_RODATA_LOAD
248        .rtemsroset : ALIGN_WITH_INPUT SUBALIGN(bsp_set_align) {
249                /* Special FreeBSD linker set sections */
250                __start_set_sysctl_set = .;
251                *(set_sysctl_*);
252                __stop_set_sysctl_set = .;
253                *(set_domain_*);
254                *(set_pseudo_*);
255
256                KEEP (*(SORT(.rtemsroset.*)))
257                bsp_section_rodata_end = .;
258        } > REGION_RODATA AT > REGION_RODATA_LOAD
259        bsp_section_rodata_size = bsp_section_rodata_end - bsp_section_rodata_begin;
260        bsp_section_rodata_load_begin = LOADADDR (.rodata);
261        bsp_section_rodata_load_end = bsp_section_rodata_load_begin + bsp_section_rodata_size;
262
263        .rwbarrier : ALIGN_WITH_INPUT {
264                . = ALIGN (bsp_section_rwbarrier_align);
265        } > REGION_DATA AT > REGION_DATA
266
267        .vector : ALIGN_WITH_INPUT {
268                bsp_section_vector_begin = .;
269                . = . + DEFINED (bsp_vector_table_in_start_section) ? 0 : bsp_vector_table_size;
270                bsp_section_vector_end = .;
271        } > REGION_VECTOR AT > REGION_VECTOR
272        bsp_section_vector_size = bsp_section_vector_end - bsp_section_vector_begin;
273        bsp_vector_table_begin = DEFINED (bsp_vector_table_in_start_section) ? bsp_section_start_begin : bsp_section_vector_begin;
274        bsp_vector_table_end = bsp_vector_table_begin + bsp_vector_table_size;
275
276        .fast_text : ALIGN_WITH_INPUT {
277                bsp_section_fast_text_begin = .;
278                *(.bsp_fast_text)
279                bsp_section_fast_text_end = .;
280        } > REGION_FAST_TEXT AT > REGION_FAST_TEXT_LOAD
281        bsp_section_fast_text_size = bsp_section_fast_text_end - bsp_section_fast_text_begin;
282        bsp_section_fast_text_load_begin = LOADADDR (.fast_text);
283        bsp_section_fast_text_load_end = bsp_section_fast_text_load_begin + bsp_section_fast_text_size;
284
285        .fast_data : ALIGN_WITH_INPUT {
286                bsp_section_fast_data_begin = .;
287                *(.bsp_fast_data)
288                bsp_section_fast_data_end = .;
289        } > REGION_FAST_DATA AT > REGION_FAST_DATA_LOAD
290        bsp_section_fast_data_size = bsp_section_fast_data_end - bsp_section_fast_data_begin;
291        bsp_section_fast_data_load_begin = LOADADDR (.fast_data);
292        bsp_section_fast_data_load_end = bsp_section_fast_data_load_begin + bsp_section_fast_data_size;
293
294        .data : ALIGN_WITH_INPUT {
295                bsp_section_data_begin = .;
296                *(.data .data.* .gnu.linkonce.d.*)
297                SORT(CONSTRUCTORS)
298        } > REGION_DATA AT > REGION_DATA_LOAD
299        .data1 : ALIGN_WITH_INPUT {
300                *(.data1)
301        } > REGION_DATA AT > REGION_DATA_LOAD
302        .rtemsrwset : ALIGN_WITH_INPUT SUBALIGN(bsp_set_align) {
303                KEEP (*(SORT(.rtemsrwset.*)))
304                bsp_section_data_end = .;
305        } > REGION_DATA AT > REGION_DATA_LOAD
306        bsp_section_data_size = bsp_section_data_end - bsp_section_data_begin;
307        bsp_section_data_load_begin = LOADADDR (.data);
308        bsp_section_data_load_end = bsp_section_data_load_begin + bsp_section_data_size;
309
310        .bss : ALIGN_WITH_INPUT {
311                bsp_section_bss_begin = .;
312                *(.dynbss)
313                *(.bss .bss.* .gnu.linkonce.b.*)
314                *(COMMON)
315                bsp_section_bss_end = .;
316        } > REGION_BSS AT > REGION_BSS
317        bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_begin;
318
319        .rtemsstack (NOLOAD) : ALIGN_WITH_INPUT {
320                bsp_section_rtemsstack_begin = .;
321                *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.rtemsstack*)))
322                bsp_section_rtemsstack_end = .;
323        } > REGION_WORK AT > REGION_WORK
324        bsp_section_rtemsstack_size = bsp_section_rtemsstack_end - bsp_section_rtemsstack_begin;
325
326        .work : ALIGN_WITH_INPUT {
327                /*
328                 * The work section will occupy the remaining REGION_WORK region and
329                 * contains the RTEMS work space and heap.
330                 */
331                bsp_section_work_begin = .;
332                . += ORIGIN (REGION_WORK) + LENGTH (REGION_WORK) - ABSOLUTE (.);
333                bsp_section_work_end = .;
334        } > REGION_WORK AT > REGION_WORK
335        bsp_section_work_size = bsp_section_work_end - bsp_section_work_begin;
336
337        .stack : ALIGN_WITH_INPUT {
338                /*
339                 * The stack section will occupy the remaining REGION_STACK region and may
340                 * contain the task stacks.  Depending on the region distribution this
341                 * section may be of zero size.
342                 */
343                bsp_section_stack_begin = .;
344                . += ORIGIN (REGION_STACK) + LENGTH (REGION_STACK) - ABSOLUTE (.);
345                bsp_section_stack_end = .;
346        } > REGION_STACK AT > REGION_STACK
347        bsp_section_stack_size = bsp_section_stack_end - bsp_section_stack_begin;
348
349        .nocache : ALIGN_WITH_INPUT {
350                bsp_section_nocache_begin = .;
351                *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_nocache*)))
352                bsp_section_nocache_end = .;
353        } > REGION_NOCACHE AT > REGION_NOCACHE_LOAD
354        bsp_section_nocache_size = bsp_section_nocache_end - bsp_section_nocache_begin;
355        bsp_section_nocache_load_begin = LOADADDR (.nocache);
356        bsp_section_nocache_load_end = bsp_section_nocache_load_begin + bsp_section_nocache_size;
357
358        .nocachenoload (NOLOAD) : ALIGN_WITH_INPUT {
359                bsp_section_nocachenoload_begin = .;
360                *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_noload_nocache*)))
361                bsp_section_nocacheheap_begin = .;
362                . += ORIGIN (REGION_NOCACHE) + LENGTH (REGION_NOCACHE) - ABSOLUTE (.);
363                bsp_section_nocacheheap_end = .;
364                bsp_section_nocachenoload_end = .;
365        } > REGION_NOCACHE AT > REGION_NOCACHE
366        bsp_section_nocacheheap_size = bsp_section_nocacheheap_end - bsp_section_nocacheheap_begin;
367        bsp_section_nocachenoload_size = bsp_section_nocachenoload_end - bsp_section_nocachenoload_begin;
368
369        /* FIXME */
370        RamBase = ORIGIN (REGION_WORK);
371        RamSize = LENGTH (REGION_WORK);
372        RamEnd = RamBase + RamSize;
373        WorkAreaBase = bsp_section_work_begin;
374        HeapSize = 0;
375
376        /* Stabs debugging sections.  */
377        .stab          0 : { *(.stab) }
378        .stabstr       0 : { *(.stabstr) }
379        .stab.excl     0 : { *(.stab.excl) }
380        .stab.exclstr  0 : { *(.stab.exclstr) }
381        .stab.index    0 : { *(.stab.index) }
382        .stab.indexstr 0 : { *(.stab.indexstr) }
383        .comment       0 : { *(.comment) }
384        /* DWARF debug sections.
385           Symbols in the DWARF debugging sections are relative to the beginning
386           of the section so we begin them at 0.  */
387        /* DWARF 1.  */
388        .debug          0 : { *(.debug) }
389        .line           0 : { *(.line) }
390        /* GNU DWARF 1 extensions.  */
391        .debug_srcinfo  0 : { *(.debug_srcinfo) }
392        .debug_sfnames  0 : { *(.debug_sfnames) }
393        /* DWARF 1.1 and DWARF 2.  */
394        .debug_aranges  0 : { *(.debug_aranges) }
395        .debug_pubnames 0 : { *(.debug_pubnames) }
396        /* DWARF 2.  */
397        .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
398        .debug_abbrev   0 : { *(.debug_abbrev) }
399        .debug_line     0 : { *(.debug_line .debug_line.* .debug_line_end) }
400        .debug_frame    0 : { *(.debug_frame) }
401        .debug_str      0 : { *(.debug_str) }
402        .debug_loc      0 : { *(.debug_loc) }
403        .debug_macinfo  0 : { *(.debug_macinfo) }
404        /* SGI/MIPS DWARF 2 extensions.  */
405        .debug_weaknames 0 : { *(.debug_weaknames) }
406        .debug_funcnames 0 : { *(.debug_funcnames) }
407        .debug_typenames 0 : { *(.debug_typenames) }
408        .debug_varnames  0 : { *(.debug_varnames) }
409        /* DWARF 3.  */
410        .debug_pubtypes 0 : { *(.debug_pubtypes) }
411        .debug_ranges   0 : { *(.debug_ranges) }
412        /* DWARF 5.  */
413        .debug_loclists 0 : { *(.debug_loclists) }
414        .debug_rnglists 0 : { *(.debug_rnglists) }
415        .debug_line_str 0 : { *(.debug_line_str) }
416        .debug_str_offsets 0 : { *(.debug_str_offsets) }
417        .debug_macro    0 : { *(.debug_macro) }
418        .debug_addr     0 : { *(.debug_addr) }
419        .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }
420        .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
421        /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
422
423        /*
424         * This is a RTEMS specific section to catch all unexpected input
425         * sections.  In case you get an error like
426         *   "section `.unexpected_sections' will not fit in region
427         *   `UNEXPECTED_SECTIONS'"
428         * you have to figure out the offending input section and add it to the
429         * appropriate output section definition above.
430         */
431        .unexpected_sections : { *(*) } > UNEXPECTED_SECTIONS
432}
Note: See TracBrowser for help on using the repository browser.