Back to home page

LXR

 
 

    


Warning, /bsps/no_cpu/no_bsp/start/linkcmds is written in an unsupported language. File is not indexed.

0001 /* SPDX-License-Identifier: BSD-2-Clause */
0002 
0003 /*
0004  *  This file contains directives for the GNU linker which are specific
0005  *  to the NO_CPU NO_BSP BOARD.
0006  *
0007  *  COPYRIGHT (c) 1989-1999.
0008  *  On-Line Applications Research Corporation (OAR).
0009  *
0010  * Redistribution and use in source and binary forms, with or without
0011  * modification, are permitted provided that the following conditions
0012  * are met:
0013  * 1. Redistributions of source code must retain the above copyright
0014  *    notice, this list of conditions and the following disclaimer.
0015  * 2. Redistributions in binary form must reproduce the above copyright
0016  *    notice, this list of conditions and the following disclaimer in the
0017  *    documentation and/or other materials provided with the distribution.
0018  *
0019  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0020  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0021  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0022  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
0023  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0024  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0025  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0026  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0027  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0028  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0029  * POSSIBILITY OF SUCH DAMAGE.
0030  */
0031 
0032 MEMORY
0033         {
0034         ram : org = 0x0, l = 1M
0035         }
0036 
0037 SECTIONS
0038 {
0039         .text 0x0 :
0040         {
0041         text_start = . ;
0042         _text_start = . ;
0043         *(.text)
0044         . = ALIGN (16);
0045 
0046         /*
0047          * Special FreeBSD sysctl sections.
0048          */
0049         . = ALIGN (16);
0050         __start_set_sysctl_set = .;
0051         *(set_sysctl_*);
0052         __stop_set_sysctl_set = ABSOLUTE(.);
0053         *(set_domain_*);
0054         *(set_pseudo_*);
0055 
0056         *(.eh_fram)
0057         . = ALIGN (16);
0058 
0059         /*
0060          * C++ constructors
0061          */
0062         __CTOR_LIST__ = .;
0063         LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
0064         *(.ctors)
0065         LONG(0)
0066         __CTOR_END__ = .;
0067         __DTOR_LIST__ = .;
0068         LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
0069         *(.dtors)
0070         LONG(0)
0071         __DTOR_END__ = .;
0072         _etext = ALIGN( 0x10 ) ;
0073         }
0074         .data ADDR( .text ) + SIZEOF( .text ):
0075         {
0076         data_start = . ;
0077         _data_start = . ;
0078         *(.data)
0079         _edata = ALIGN( 0x10 ) ;
0080         }
0081         .bss ADDR( .data ) + SIZEOF( .data ):
0082         {
0083         bss_start = . ;
0084         _bss_start = . ;
0085         *(.bss)
0086         *(COMMON)
0087         end = . ;
0088         __end = . ;
0089         }
0090 }