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.n32

Version: -  FREEBSD  -  FREEBSD11  -  FREEBSD10  -  FREEBSD9  -  FREEBSD92  -  FREEBSD91  -  FREEBSD90  -  FREEBSD8  -  FREEBSD82  -  FREEBSD81  -  FREEBSD80  -  FREEBSD7  -  FREEBSD74  -  FREEBSD73  -  FREEBSD72  -  FREEBSD71  -  FREEBSD70  -  FREEBSD6  -  FREEBSD64  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
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: stable/8/sys/conf/ldscript.mips.n32 215938 2010-11-27 12:26:40Z jchandra $
   31  */
   32 
   33 OUTPUT_FORMAT("elf32-ntradbigmips", "elf32-ntradbigmips", 
   34                 "elf32-ntradlittlemips")
   35 
   36 OUTPUT_ARCH(mips)
   37 ENTRY(_start)
   38 SEARCH_DIR(/usr/lib);
   39 /* Do we need any of these for elf?
   40    __DYNAMIC = 0;
   41 PROVIDE (_DYNAMIC = 0);
   42 */
   43 SECTIONS
   44 {
   45   /* Read-only sections, merged into text segment: */
   46   . = KERNLOADADDR + SIZEOF_HEADERS;
   47   .text      :
   48   {
   49     *(.trap)
   50     *(.text)
   51     *(.text.*)
   52     *(.stub)
   53     /* .gnu.warning sections are handled specially by elf32.em.  */
   54     *(.gnu.warning)
   55     *(.gnu.linkonce.t.*)
   56   } =0x1000000
   57   .fini      :
   58   {
   59     KEEP (*(.fini))
   60   } =0x1000000
   61   PROVIDE (__etext = .);
   62   PROVIDE (_etext = .);
   63   PROVIDE (etext = .);
   64   .rodata   : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) }
   65   .rodata1   : { *(.rodata1) }
   66   .interp     : { *(.interp)    }
   67   .hash          : { *(.hash)           }
   68   .dynsym        : { *(.dynsym)         }
   69   .dynstr        : { *(.dynstr)         }
   70   .gnu.version   : { *(.gnu.version)    }
   71   .gnu.version_d   : { *(.gnu.version_d)        }
   72   .gnu.version_r   : { *(.gnu.version_r)        }
   73   .rel.init      : { *(.rel.init)       }
   74   .rela.init     : { *(.rela.init)      }
   75   .rel.text      :
   76     {
   77       *(.rel.text)
   78       *(.rel.text.*)
   79       *(.rel.gnu.linkonce.t.*)
   80     }
   81   .rela.text     :
   82     {
   83       *(.rela.text)
   84       *(.rela.text.*)
   85       *(.rela.gnu.linkonce.t.*)
   86     }
   87   .rel.fini      : { *(.rel.fini)       }
   88   .rela.fini     : { *(.rela.fini)      }
   89   .rel.rodata    :
   90     {
   91       *(.rel.rodata)
   92       *(.rel.rodata.*)
   93       *(.rel.gnu.linkonce.r.*)
   94     }
   95   .rela.rodata   :
   96     {
   97       *(.rela.rodata)
   98       *(.rela.rodata.*)
   99       *(.rela.gnu.linkonce.r.*)
  100     }
  101   .rel.data      :
  102     {
  103       *(.rel.data)
  104       *(.rel.data.*)
  105       *(.rel.gnu.linkonce.d.*)
  106     }
  107   .rela.data     :
  108     {
  109       *(.rela.data)
  110       *(.rela.data.*)
  111       *(.rela.gnu.linkonce.d.*)
  112     }
  113   .rel.ctors     : { *(.rel.ctors)      }
  114   .rela.ctors    : { *(.rela.ctors)     }
  115   .rel.dtors     : { *(.rel.dtors)      }
  116   .rela.dtors    : { *(.rela.dtors)     }
  117   .rel.got       : { *(.rel.got)                }
  118   .rela.got      : { *(.rela.got)               }
  119   .rel.sdata     :
  120     {
  121       *(.rel.sdata)
  122       *(.rel.sdata.*)
  123       *(.rel.gnu.linkonce.s.*)
  124     }
  125   .rela.sdata     :
  126     {
  127       *(.rela.sdata)
  128       *(.rela.sdata.*)
  129       *(.rela.gnu.linkonce.s.*)
  130     }
  131   .rel.sbss      :
  132     { 
  133       *(.rel.sbss)
  134       *(.rel.sbss.*)
  135       *(.rel.gnu.linkonce.sb.*)
  136     }
  137   .rela.sbss     :
  138     {
  139       *(.rela.sbss)
  140       *(.rela.sbss.*)
  141       *(.rel.gnu.linkonce.sb.*)
  142     }
  143   .rel.sdata2    : 
  144     { 
  145       *(.rel.sdata2)
  146       *(.rel.sdata2.*)
  147       *(.rel.gnu.linkonce.s2.*)
  148     }
  149   .rela.sdata2   : 
  150     {
  151       *(.rela.sdata2)
  152       *(.rela.sdata2.*)
  153       *(.rela.gnu.linkonce.s2.*)
  154     }
  155   .rel.sbss2     : 
  156     { 
  157       *(.rel.sbss2)     
  158       *(.rel.sbss2.*)
  159       *(.rel.gnu.linkonce.sb2.*)
  160     }
  161   .rela.sbss2    : 
  162     { 
  163       *(.rela.sbss2)    
  164       *(.rela.sbss2.*)
  165       *(.rela.gnu.linkonce.sb2.*)
  166     }
  167   .rel.bss       : 
  168     { 
  169       *(.rel.bss)
  170       *(.rel.bss.*)
  171       *(.rel.gnu.linkonce.b.*)
  172     }
  173   .rela.bss      : 
  174     { 
  175       *(.rela.bss)
  176       *(.rela.bss.*)
  177       *(.rela.gnu.linkonce.b.*)
  178     }
  179   .rel.plt       : { *(.rel.plt)                }
  180   .rela.plt      : { *(.rela.plt)               }
  181   .init          : 
  182   { 
  183     KEEP (*(.init))
  184   } =0x1000000
  185   .reginfo : { *(.reginfo) }
  186   .sdata2   : { *(.sdata2) *(.sdata2.*) *(.gnu.linkonce.s2.*) }
  187   .sbss2   : { *(.sbss2) *(.sbss2.*) *(.gnu.linkonce.sb2.*) }
  188   . = ALIGN(0x2000) + (. & (0x2000 - 1));
  189   .data    :
  190   {
  191     *(.data)
  192     *(.data.*)
  193     *(.gnu.linkonce.d.*)
  194     SORT(CONSTRUCTORS)
  195   }
  196   .data1   : { *(.data1) }
  197   .eh_frame : { KEEP (*(.eh_frame)) }
  198   .gcc_except_table : { *(.gcc_except_table) }
  199   .ctors   : 
  200   {
  201     /* gcc uses crtbegin.o to find the start of
  202        the constructors, so we make sure it is
  203        first.  Because this is a wildcard, it
  204        doesn't matter if the user does not
  205        actually link against crtbegin.o; the
  206        linker won't look for a file to match a
  207        wildcard.  The wildcard also means that it
  208        doesn't matter which directory crtbegin.o
  209        is in.  */
  210     KEEP (*crtbegin.o(.ctors))
  211     /* We don't want to include the .ctor section from
  212        from the crtend.o file until after the sorted ctors.
  213        The .ctor section from the crtend file contains the
  214        end of ctors marker and it must be last */
  215     KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
  216     KEEP (*(SORT(.ctors.*)))
  217     KEEP (*(.ctors))
  218   }
  219    .dtors         :
  220   {
  221     KEEP (*crtbegin.o(.dtors))
  222     KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
  223     KEEP (*(SORT(.dtors.*)))
  224     KEEP (*(.dtors))
  225   }
  226   .plt      : { *(.plt) }
  227   _gp = ALIGN(16) + 0x7ff0;
  228   .got            : { *(.got.plt) *(.got) }
  229   .dynamic       : { *(.dynamic) }
  230   /* We want the small data sections together, so single-instruction offsets
  231      can access them all, and initialized data all before uninitialized, so
  232      we can shorten the on-disk segment size.  */
  233   .sdata     : 
  234   {
  235     *(.sdata) 
  236     *(.sdata.*)
  237     *(.gnu.linkonce.s.*)
  238   }
  239   _edata = .;
  240   PROVIDE (edata = .);
  241   __bss_start = .;
  242   .sbss      :
  243   {
  244     PROVIDE (__sbss_start = .);
  245     PROVIDE (___sbss_start = .);
  246     *(.dynsbss)
  247     *(.sbss)
  248     *(.sbss.*)
  249     *(.gnu.linkonce.sb.*)
  250     *(.scommon)
  251     PROVIDE (__sbss_end = .);
  252     PROVIDE (___sbss_end = .);
  253   }
  254   .bss       :
  255   {
  256    *(.dynbss)
  257    *(.bss)
  258    *(.bss.*)
  259    *(.gnu.linkonce.b.*)
  260    *(COMMON)
  261    /* Align here to ensure that the .bss section occupies space up to
  262       _end.  Align after .bss to ensure correct alignment even if the
  263       .bss section disappears because there are no input sections.  */
  264    . = ALIGN(64 / 8);
  265   }
  266   . = ALIGN(64 / 8);
  267   _end = .;
  268   PROVIDE (end = .);
  269   /* Stabs debugging sections.  */
  270   .stab 0 : { *(.stab) }
  271   .stabstr 0 : { *(.stabstr) }
  272   .stab.excl 0 : { *(.stab.excl) }
  273   .stab.exclstr 0 : { *(.stab.exclstr) }
  274   .stab.index 0 : { *(.stab.index) }
  275   .stab.indexstr 0 : { *(.stab.indexstr) }
  276   .comment 0 : { *(.comment) }
  277   /* DWARF debug sections.
  278      Symbols in the DWARF debugging sections are relative to the beginning
  279      of the section so we begin them at 0.  */
  280   /* DWARF 1 */
  281   .debug          0 : { *(.debug) }
  282   .line           0 : { *(.line) }
  283   /* GNU DWARF 1 extensions */
  284   .debug_srcinfo  0 : { *(.debug_srcinfo) }
  285   .debug_sfnames  0 : { *(.debug_sfnames) }
  286   /* DWARF 1.1 and DWARF 2 */
  287   .debug_aranges  0 : { *(.debug_aranges) }
  288   .debug_pubnames 0 : { *(.debug_pubnames) }
  289   /* DWARF 2 */
  290   .debug_info     0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
  291   .debug_abbrev   0 : { *(.debug_abbrev) }
  292   .debug_line     0 : { *(.debug_line) }
  293   .debug_frame    0 : { *(.debug_frame) }
  294   .debug_str      0 : { *(.debug_str) }
  295   .debug_loc      0 : { *(.debug_loc) }
  296   .debug_macinfo  0 : { *(.debug_macinfo) }
  297   /* SGI/MIPS DWARF 2 extensions */
  298   .debug_weaknames 0 : { *(.debug_weaknames) }
  299   .debug_funcnames 0 : { *(.debug_funcnames) }
  300   .debug_typenames 0 : { *(.debug_typenames) }
  301   .debug_varnames  0 : { *(.debug_varnames) }
  302   /* These must appear regardless of  .  */
  303 }

Cache object: 00783f89f600d9efc434a3ae6e0c05ed


[ 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.