The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/conf/ldscript.mips

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 2001, 2004, 2008, Juniper Networks, Inc.
    3  * All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  * 1. Redistributions of source code must retain the above copyright
    9  *    notice, this list of conditions and the following disclaimer.
   10  * 2. Redistributions in binary form must reproduce the above copyright
   11  *    notice, this list of conditions and the following disclaimer in the
   12  *    documentation and/or other materials provided with the distribution.
   13  * 3. Neither the name of the Juniper Networks, Inc. nor the names of its
   14  *    contributors may be used to endorse or promote products derived from
   15  *    this software without specific prior written permission.
   16  *
   17  * THIS SOFTWARE IS PROVIDED BY JUNIPER NETWORKS AND CONTRIBUTORS ``AS IS'' AND
   18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   20  * ARE DISCLAIMED. IN NO EVENT SHALL JUNIPER NETWORKS OR CONTRIBUTORS BE LIABLE
   21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   27  * SUCH DAMAGE.
   28  *
   29  *      JNPR: ldscript.mips,v 1.3 2006/10/11 06:12:04
   30  * $FreeBSD$
   31  */
   32 
   33 OUTPUT_ARCH(mips)
   34 ENTRY(_start)
   35 SEARCH_DIR(/usr/lib);
   36 SECTIONS
   37 {
   38   /* Read-only sections, merged into text segment: */
   39   . = KERNLOADADDR + SIZEOF_HEADERS;
   40   .text      :
   41   {
   42     *(.trap)
   43     *(.text)
   44     *(.text.*)
   45     *(.stub)
   46     /* .gnu.warning sections are handled specially by elf32.em.  */
   47     *(.gnu.warning)
   48     *(.gnu.linkonce.t.*)
   49   } =0x1000000
   50   .fini      :
   51   {
   52     KEEP (*(.fini))
   53   } =0x1000000
   54   PROVIDE (__etext = .);
   55   PROVIDE (_etext = .);
   56   PROVIDE (etext = .);
   57   .rodata   : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) }
   58   .rodata1   : { *(.rodata1) }
   59   .interp     : { *(.interp)    }
   60   .hash          : { *(.hash)           }
   61   .dynsym        : { *(.dynsym)         }
   62   .dynstr        : { *(.dynstr)         }
   63   .gnu.version   : { *(.gnu.version)    }
   64   .gnu.version_d   : { *(.gnu.version_d)        }
   65   .gnu.version_r   : { *(.gnu.version_r)        }
   66   .note.gnu.build-id : {
   67     PROVIDE (__build_id_start = .);
   68     *(.note.gnu.build-id)
   69     PROVIDE (__build_id_end = .);
   70   }
   71   .rel.init      : { *(.rel.init)       }
   72   .rela.init     : { *(.rela.init)      }
   73   .rel.text      :
   74     {
   75       *(.rel.text)
   76       *(.rel.text.*)
   77       *(.rel.gnu.linkonce.t.*)
   78     }
   79   .rela.text     :
   80     {
   81       *(.rela.text)
   82       *(.rela.text.*)
   83       *(.rela.gnu.linkonce.t.*)
   84     }
   85   .rel.fini      : { *(.rel.fini)       }
   86   .rela.fini     : { *(.rela.fini)      }
   87   .rel.rodata    :
   88     {
   89       *(.rel.rodata)
   90       *(.rel.rodata.*)
   91       *(.rel.gnu.linkonce.r.*)
   92     }
   93   .rela.rodata   :
   94     {
   95       *(.rela.rodata)
   96       *(.rela.rodata.*)
   97       *(.rela.gnu.linkonce.r.*)
   98     }
   99   .rel.data      :
  100     {
  101       *(.rel.data)
  102       *(.rel.data.*)
  103       *(.rel.gnu.linkonce.d.*)
  104     }
  105   .rela.data     :
  106     {
  107       *(.rela.data)
  108       *(.rela.data.*)
  109       *(.rela.gnu.linkonce.d.*)
  110     }
  111   .rel.ctors     : { *(.rel.ctors)      }
  112   .rela.ctors    : { *(.rela.ctors)     }
  113   .rel.dtors     : { *(.rel.dtors)      }
  114   .rela.dtors    : { *(.rela.dtors)     }
  115   .rel.got       : { *(.rel.got)                }
  116   .rela.got      : { *(.rela.got)               }
  117   .rel.sdata     :
  118     {
  119       *(.rel.sdata)
  120       *(.rel.sdata.*)
  121       *(.rel.gnu.linkonce.s.*)
  122     }
  123   .rela.sdata     :
  124     {
  125       *(.rela.sdata)
  126       *(.rela.sdata.*)
  127       *(.rela.gnu.linkonce.s.*)
  128     }
  129   .rel.sbss      :
  130     { 
  131       *(.rel.sbss)
  132       *(.rel.sbss.*)
  133       *(.rel.gnu.linkonce.sb.*)
  134     }
  135   .rela.sbss     :
  136     {
  137       *(.rela.sbss)
  138       *(.rela.sbss.*)
  139       *(.rel.gnu.linkonce.sb.*)
  140     }
  141   .rel.sdata2    : 
  142     { 
  143       *(.rel.sdata2)
  144       *(.rel.sdata2.*)
  145       *(.rel.gnu.linkonce.s2.*)
  146     }
  147   .rela.sdata2   : 
  148     {
  149       *(.rela.sdata2)
  150       *(.rela.sdata2.*)
  151       *(.rela.gnu.linkonce.s2.*)
  152     }
  153   .rel.sbss2     : 
  154     { 
  155       *(.rel.sbss2)     
  156       *(.rel.sbss2.*)
  157       *(.rel.gnu.linkonce.sb2.*)
  158     }
  159   .rela.sbss2    : 
  160     { 
  161       *(.rela.sbss2)    
  162       *(.rela.sbss2.*)
  163       *(.rela.gnu.linkonce.sb2.*)
  164     }
  165   .rel.bss       : 
  166     { 
  167       *(.rel.bss)
  168       *(.rel.bss.*)
  169       *(.rel.gnu.linkonce.b.*)
  170     }
  171   .rela.bss      : 
  172     { 
  173       *(.rela.bss)
  174       *(.rela.bss.*)
  175       *(.rela.gnu.linkonce.b.*)
  176     }
  177   .rel.plt       : { *(.rel.plt)                }
  178   .rela.plt      : { *(.rela.plt)               }
  179   .init          : 
  180   { 
  181     KEEP (*(.init))
  182   } =0x1000000
  183   .reginfo : { *(.reginfo) }
  184   .sdata2   : { *(.sdata2) *(.sdata2.*) *(.gnu.linkonce.s2.*) }
  185   .sbss2   : { *(.sbss2) *(.sbss2.*) *(.gnu.linkonce.sb2.*) }
  186   . = ALIGN(0x2000) + (. & (0x2000 - 1));
  187   .data    :
  188   {
  189     *(.data)
  190     *(.data.*)
  191     *(.gnu.linkonce.d.*)
  192   }
  193   .data1   : { *(.data1) }
  194   .eh_frame : { KEEP (*(.eh_frame)) }
  195   .gcc_except_table : { *(.gcc_except_table) }
  196   .ctors   : 
  197   {
  198     /* gcc uses crtbegin.o to find the start of
  199        the constructors, so we make sure it is
  200        first.  Because this is a wildcard, it
  201        doesn't matter if the user does not
  202        actually link against crtbegin.o; the
  203        linker won't look for a file to match a
  204        wildcard.  The wildcard also means that it
  205        doesn't matter which directory crtbegin.o
  206        is in.  */
  207     KEEP (*crtbegin.o(.ctors))
  208     /* We don't want to include the .ctor section from
  209        from the crtend.o file until after the sorted ctors.
  210        The .ctor section from the crtend file contains the
  211        end of ctors marker and it must be last */
  212     KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
  213     KEEP (*(SORT(.ctors.*)))
  214     KEEP (*(.ctors))
  215   }
  216    .dtors         :
  217   {
  218     KEEP (*crtbegin.o(.dtors))
  219     KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
  220     KEEP (*(SORT(.dtors.*)))
  221     KEEP (*(.dtors))
  222   }
  223   .plt      : { *(.plt) }
  224   _gp = ALIGN(16) + 0x7ff0;
  225   .got            : { *(.got.plt) *(.got) }
  226   .dynamic       : { *(.dynamic) }
  227   /* We want the small data sections together, so single-instruction offsets
  228      can access them all, and initialized data all before uninitialized, so
  229      we can shorten the on-disk segment size.  */
  230   .sdata     : 
  231   {
  232     *(.sdata) 
  233     *(.sdata.*)
  234     *(.gnu.linkonce.s.*)
  235   }
  236   _edata = .;
  237   PROVIDE (edata = .);
  238   __bss_start = .;
  239   .sbss      :
  240   {
  241     PROVIDE (__sbss_start = .);
  242     PROVIDE (___sbss_start = .);
  243     *(.dynsbss)
  244     *(.sbss)
  245     *(.sbss.*)
  246     *(.gnu.linkonce.sb.*)
  247     *(.scommon)
  248     PROVIDE (__sbss_end = .);
  249     PROVIDE (___sbss_end = .);
  250   }
  251   .bss       :
  252   {
  253    *(.dynbss)
  254    *(.bss)
  255    *(.bss.*)
  256    *(.gnu.linkonce.b.*)
  257    *(COMMON)
  258    /* Align here to ensure that the .bss section occupies space up to
  259       _end.  Align after .bss to ensure correct alignment even if the
  260       .bss section disappears because there are no input sections.  */
  261    . = ALIGN(64 / 8);
  262   }
  263   . = ALIGN(64 / 8);
  264   _end = .;
  265   PROVIDE (end = .);
  266   /* Stabs debugging sections.  */
  267   .stab 0 : { *(.stab) }
  268   .stabstr 0 : { *(.stabstr) }
  269   .stab.excl 0 : { *(.stab.excl) }
  270   .stab.exclstr 0 : { *(.stab.exclstr) }
  271   .stab.index 0 : { *(.stab.index) }
  272   .stab.indexstr 0 : { *(.stab.indexstr) }
  273   .comment 0 : { *(.comment) }
  274   /* DWARF debug sections.
  275      Symbols in the DWARF debugging sections are relative to the beginning
  276      of the section so we begin them at 0.  */
  277   /* DWARF 1 */
  278   .debug          0 : { *(.debug) }
  279   .line           0 : { *(.line) }
  280   /* GNU DWARF 1 extensions */
  281   .debug_srcinfo  0 : { *(.debug_srcinfo) }
  282   .debug_sfnames  0 : { *(.debug_sfnames) }
  283   /* DWARF 1.1 and DWARF 2 */
  284   .debug_aranges  0 : { *(.debug_aranges) }
  285   .debug_pubnames 0 : { *(.debug_pubnames) }
  286   /* DWARF 2 */
  287   .debug_info     0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
  288   .debug_abbrev   0 : { *(.debug_abbrev) }
  289   .debug_line     0 : { *(.debug_line) }
  290   .debug_frame    0 : { *(.debug_frame) }
  291   .debug_str      0 : { *(.debug_str) }
  292   .debug_loc      0 : { *(.debug_loc) }
  293   .debug_macinfo  0 : { *(.debug_macinfo) }
  294   /* SGI/MIPS DWARF 2 extensions */
  295   .debug_weaknames 0 : { *(.debug_weaknames) }
  296   .debug_funcnames 0 : { *(.debug_funcnames) }
  297   .debug_typenames 0 : { *(.debug_typenames) }
  298   .debug_varnames  0 : { *(.debug_varnames) }
  299   /* These must appear regardless of  .  */
  300 }

Cache object: 180dfa1e9cd57c04cc8989144c88d316


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.