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

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  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 /* $FreeBSD: releng/11.0/sys/conf/ldscript.riscv 295041 2016-01-29 15:12:31Z br $ */
    2 OUTPUT_ARCH(riscv)
    3 ENTRY(_start)
    4 
    5 SEARCH_DIR(/usr/lib);
    6 SECTIONS
    7 {
    8   /* Read-only sections, merged into text segment: */
    9   . = kernbase + 0x100;
   10   .text      : AT(ADDR(.text) - kernbase)
   11   {
   12     *(.text)
   13     *(.stub)
   14     /* .gnu.warning sections are handled specially by elf32.em.  */
   15     *(.gnu.warning)
   16     *(.gnu.linkonce.t*)
   17   } =0x9090
   18   _etext = .;
   19   PROVIDE (etext = .);
   20   .fini      : { *(.fini)    } =0x9090
   21   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
   22   .rodata1   : { *(.rodata1) }
   23    .interp     : { *(.interp)   }
   24   .hash          : { *(.hash)           }
   25   .dynsym        : { *(.dynsym)         }
   26   .dynstr        : { *(.dynstr)         }
   27   .gnu.version   : { *(.gnu.version)    }
   28   .gnu.version_d   : { *(.gnu.version_d)        }
   29   .gnu.version_r   : { *(.gnu.version_r)        }
   30   .rel.text      :
   31     { *(.rel.text) *(.rel.gnu.linkonce.t*) }
   32   .rela.text     :
   33     { *(.rela.text) *(.rela.gnu.linkonce.t*) }
   34   .rel.data      :
   35     { *(.rel.data) *(.rel.gnu.linkonce.d*) }
   36   .rela.data     :
   37     { *(.rela.data) *(.rela.gnu.linkonce.d*) }
   38   .rel.rodata    :
   39     { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
   40   .rela.rodata   :
   41     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
   42   .rel.got       : { *(.rel.got)                }
   43   .rela.got      : { *(.rela.got)               }
   44   .rel.ctors     : { *(.rel.ctors)      }
   45   .rela.ctors    : { *(.rela.ctors)     }
   46   .rel.dtors     : { *(.rel.dtors)      }
   47   .rela.dtors    : { *(.rela.dtors)     }
   48   .rel.init      : { *(.rel.init)       }
   49   .rela.init     : { *(.rela.init)      }
   50   .rel.fini      : { *(.rel.fini)       }
   51   .rela.fini     : { *(.rela.fini)      }
   52   .rel.bss       : { *(.rel.bss)                }
   53   .rela.bss      : { *(.rela.bss)               }
   54   .rel.plt       : { *(.rel.plt)                }
   55   .rela.plt      : { *(.rela.plt)               }
   56   .init          : { *(.init)   } =0x9090
   57   .plt      : { *(.plt) }
   58 
   59   /* Adjust the address for the data segment.  We want to adjust up to
   60      the same address within the page on the next page up.  */
   61   . = ALIGN(0x1000) + (. & (0x1000 - 1)) ;
   62   .data    :
   63   {
   64     *(.data)
   65     *(.gnu.linkonce.d*)
   66     CONSTRUCTORS
   67   }
   68   .data1   : { *(.data1) }
   69   . = ALIGN(32 / 8);
   70   _start_ctors = .;
   71   PROVIDE (start_ctors = .);
   72   .ctors         :
   73   {
   74     *(.ctors)
   75   }
   76   _stop_ctors = .;
   77   PROVIDE (stop_ctors = .);
   78   .dtors         :
   79   {
   80     *(.dtors)
   81   }
   82   .got           : { *(.got.plt) *(.got) }
   83   .dynamic       : { *(.dynamic) }
   84   /* We want the small data sections together, so single-instruction offsets
   85      can access them all, and initialized data all before uninitialized, so
   86      we can shorten the on-disk segment size.  */
   87   . = ALIGN(8);
   88   .sdata     : { *(.sdata) }
   89   _edata  =  .;
   90   PROVIDE (edata = .);
   91   __bss_start = .;
   92   .sbss      : { *(.sbss) *(.scommon) }
   93   .bss       :
   94   {
   95    *(.dynbss)
   96    *(.bss)
   97    *(COMMON)
   98   }
   99   . = ALIGN(8);
  100   _end = . ;
  101   PROVIDE (end = .);
  102   /* Stabs debugging sections.  */
  103   .stab 0 : { *(.stab) }
  104   .stabstr 0 : { *(.stabstr) }
  105   .stab.excl 0 : { *(.stab.excl) }
  106   .stab.exclstr 0 : { *(.stab.exclstr) }
  107   .stab.index 0 : { *(.stab.index) }
  108   .stab.indexstr 0 : { *(.stab.indexstr) }
  109   .comment 0 : { *(.comment) }
  110   /* DWARF debug sections.
  111      Symbols in the DWARF debugging sections are relative to the beginning
  112      of the section so we begin them at 0.  */
  113   /* DWARF 1 */
  114   .debug          0 : { *(.debug) }
  115   .line           0 : { *(.line) }
  116   /* GNU DWARF 1 extensions */
  117   .debug_srcinfo  0 : { *(.debug_srcinfo) }
  118   .debug_sfnames  0 : { *(.debug_sfnames) }
  119   /* DWARF 1.1 and DWARF 2 */
  120   .debug_aranges  0 : { *(.debug_aranges) }
  121   .debug_pubnames 0 : { *(.debug_pubnames) }
  122   /* DWARF 2 */
  123   .debug_info     0 : { *(.debug_info) }
  124   .debug_abbrev   0 : { *(.debug_abbrev) }
  125   .debug_line     0 : { *(.debug_line) }
  126   .debug_frame    0 : { *(.debug_frame) }
  127   .debug_str      0 : { *(.debug_str) }
  128   .debug_loc      0 : { *(.debug_loc) }
  129   .debug_macinfo  0 : { *(.debug_macinfo) }
  130   /* SGI/MIPS DWARF 2 extensions */
  131   .debug_weaknames 0 : { *(.debug_weaknames) }
  132   .debug_funcnames 0 : { *(.debug_funcnames) }
  133   .debug_typenames 0 : { *(.debug_typenames) }
  134   .debug_varnames  0 : { *(.debug_varnames) }
  135   /* These must appear regardless of  .  */
  136 }

Cache object: 9c0309d4bbc43e03dac226fe0e2eb673


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