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.64.cfe

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: releng/8.2/sys/conf/ldscript.mips.64.cfe 215938 2010-11-27 12:26:40Z jchandra $
   31  */
   32 
   33 /*
   34  * This linker script is needed to build a kernel for use by Broadcom CFE
   35  * when loaded over TFTP; its ELF loader does not support backwards seek
   36  * on network I/O streams.
   37  * Furthermore, CFE will only load PT_LOAD segments, therefore the dynamic
   38  * sections must be placed in their own segment.
   39  */
   40 
   41 OUTPUT_FORMAT("elf64-tradbigmips", "elf64-tradbigmips", "elf64-tradlittlemips")
   42 
   43 OUTPUT_ARCH(mips)
   44 ENTRY(_start)
   45 SEARCH_DIR(/usr/lib);
   46 /* Do we need any of these for elf?
   47    __DYNAMIC = 0;
   48 PROVIDE (_DYNAMIC = 0);
   49 */
   50 
   51 PHDRS
   52 {
   53  headers PT_PHDR FILEHDR PHDRS ;
   54  interp PT_INTERP ;
   55  text PT_LOAD ;
   56  dynamic PT_LOAD ;
   57  data PT_LOAD ;
   58 }
   59 
   60 SECTIONS
   61 {
   62   /* Read-only sections, merged into text segment: */
   63   . = KERNLOADADDR ;
   64   .interp     : { *(.interp)    } :interp
   65   .hash          : { *(.hash)           } :text
   66   .dynsym        : { *(.dynsym)         }
   67   .dynstr        : { *(.dynstr)         }
   68   .gnu.version   : { *(.gnu.version)    }
   69   .gnu.version_d   : { *(.gnu.version_d)        }
   70   .gnu.version_r   : { *(.gnu.version_r)        }
   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   } :text =0x1000000
  183   .text      :
  184   {
  185     *(.trap)
  186     *(.text)
  187     *(.text.*)
  188     *(.stub)
  189     /* .gnu.warning sections are handled specially by elf32.em.  */
  190     *(.gnu.warning)
  191     *(.gnu.linkonce.t.*)
  192   } =0x1000000
  193   .fini      :
  194   {
  195     KEEP (*(.fini))
  196   } =0x1000000
  197   PROVIDE (__etext = .);
  198   PROVIDE (_etext = .);
  199   PROVIDE (etext = .);
  200   .rodata   : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) }
  201   .rodata1   : { *(.rodata1) }
  202   .reginfo : { *(.reginfo) }
  203   .sdata2   : { *(.sdata2) *(.sdata2.*) *(.gnu.linkonce.s2.*) }
  204   .sbss2   : { *(.sbss2) *(.sbss2.*) *(.gnu.linkonce.sb2.*) }
  205   . = ALIGN(0x2000) + (. & (0x2000 - 1));
  206   .data    :
  207   {
  208     *(.data)
  209     *(.data.*)
  210     *(.gnu.linkonce.d.*)
  211     SORT(CONSTRUCTORS)
  212   } :data
  213   .data1   : { *(.data1) }
  214   .eh_frame : { KEEP (*(.eh_frame)) }
  215   .gcc_except_table : { *(.gcc_except_table) }
  216   .ctors   : 
  217   {
  218     /* gcc uses crtbegin.o to find the start of
  219        the constructors, so we make sure it is
  220        first.  Because this is a wildcard, it
  221        doesn't matter if the user does not
  222        actually link against crtbegin.o; the
  223        linker won't look for a file to match a
  224        wildcard.  The wildcard also means that it
  225        doesn't matter which directory crtbegin.o
  226        is in.  */
  227     KEEP (*crtbegin.o(.ctors))
  228     /* We don't want to include the .ctor section from
  229        from the crtend.o file until after the sorted ctors.
  230        The .ctor section from the crtend file contains the
  231        end of ctors marker and it must be last */
  232     KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
  233     KEEP (*(SORT(.ctors.*)))
  234     KEEP (*(.ctors))
  235   }
  236    .dtors         :
  237   {
  238     KEEP (*crtbegin.o(.dtors))
  239     KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
  240     KEEP (*(SORT(.dtors.*)))
  241     KEEP (*(.dtors))
  242   }
  243   .plt      : { *(.plt) }
  244   _gp = ALIGN(16) + 0x7ff0;
  245   .got            : { *(.got.plt) *(.got) }
  246   .dynamic       : { *(.dynamic) } :dynamic
  247   /* We want the small data sections together, so single-instruction offsets
  248      can access them all, and initialized data all before uninitialized, so
  249      we can shorten the on-disk segment size.  */
  250   .sdata     : 
  251   {
  252     *(.sdata) 
  253     *(.sdata.*)
  254     *(.gnu.linkonce.s.*)
  255   }
  256   _edata = .;
  257   PROVIDE (edata = .);
  258   __bss_start = .;
  259   .sbss      :
  260   {
  261     PROVIDE (__sbss_start = .);
  262     PROVIDE (___sbss_start = .);
  263     *(.dynsbss)
  264     *(.sbss)
  265     *(.sbss.*)
  266     *(.gnu.linkonce.sb.*)
  267     *(.scommon)
  268     PROVIDE (__sbss_end = .);
  269     PROVIDE (___sbss_end = .);
  270   }
  271   .bss       :
  272   {
  273    *(.dynbss)
  274    *(.bss)
  275    *(.bss.*)
  276    *(.gnu.linkonce.b.*)
  277    *(COMMON)
  278    /* Align here to ensure that the .bss section occupies space up to
  279       _end.  Align after .bss to ensure correct alignment even if the
  280       .bss section disappears because there are no input sections.  */
  281    . = ALIGN(64 / 8);
  282   }
  283   . = ALIGN(64 / 8);
  284   _end = .;
  285   PROVIDE (end = .);
  286   /* Stabs debugging sections.  */
  287   .stab 0 : { *(.stab) }
  288   .stabstr 0 : { *(.stabstr) }
  289   .stab.excl 0 : { *(.stab.excl) }
  290   .stab.exclstr 0 : { *(.stab.exclstr) }
  291   .stab.index 0 : { *(.stab.index) }
  292   .stab.indexstr 0 : { *(.stab.indexstr) }
  293   .comment 0 : { *(.comment) }
  294   /* DWARF debug sections.
  295      Symbols in the DWARF debugging sections are relative to the beginning
  296      of the section so we begin them at 0.  */
  297   /* DWARF 1 */
  298   .debug          0 : { *(.debug) }
  299   .line           0 : { *(.line) }
  300   /* GNU DWARF 1 extensions */
  301   .debug_srcinfo  0 : { *(.debug_srcinfo) }
  302   .debug_sfnames  0 : { *(.debug_sfnames) }
  303   /* DWARF 1.1 and DWARF 2 */
  304   .debug_aranges  0 : { *(.debug_aranges) }
  305   .debug_pubnames 0 : { *(.debug_pubnames) }
  306   /* DWARF 2 */
  307   .debug_info     0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
  308   .debug_abbrev   0 : { *(.debug_abbrev) }
  309   .debug_line     0 : { *(.debug_line) }
  310   .debug_frame    0 : { *(.debug_frame) }
  311   .debug_str      0 : { *(.debug_str) }
  312   .debug_loc      0 : { *(.debug_loc) }
  313   .debug_macinfo  0 : { *(.debug_macinfo) }
  314   /* SGI/MIPS DWARF 2 extensions */
  315   .debug_weaknames 0 : { *(.debug_weaknames) }
  316   .debug_funcnames 0 : { *(.debug_funcnames) }
  317   .debug_typenames 0 : { *(.debug_typenames) }
  318   .debug_varnames  0 : { *(.debug_varnames) }
  319   /* These must appear regardless of  .  */
  320 }

Cache object: d9e35fda6a5394d50de3348e65b4e3d9


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