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

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 /* $FreeBSD: releng/12.0/sys/conf/ldscript.powerpc64 338071 2018-08-19 19:00:44Z jhibbits $ */
    2 
    3 OUTPUT_FORMAT("elf64-powerpc-freebsd", "elf64-powerpc-freebsd",
    4               "elf64-powerpc-freebsd")
    5 OUTPUT_ARCH(powerpc:common64)
    6 ENTRY(__start)
    7 SEARCH_DIR(/usr/lib);
    8 PROVIDE (__stack = 0);
    9 SECTIONS
   10 {
   11 
   12   /* Low-address wrapper for bootloaders (kexec/kboot) that can't parse ELF */
   13   . = kernbase - 0x100;
   14   .kboot : { *(.text.kboot) }
   15 
   16   /* Read-only sections, merged into text segment: */
   17   . = kernbase;
   18   PROVIDE (begin = .);
   19 
   20   .text      :
   21   {
   22     *(.text)
   23     *(.stub)
   24     /* .gnu.warning sections are handled specially by elf32.em.  */
   25     *(.gnu.warning)
   26     *(.gnu.linkonce.t*)
   27   } =0
   28   _etext = .;
   29   PROVIDE (etext = .);
   30 
   31   /* Do not emit PT_INTERP section, which confuses some loaders (kexec-lite) */
   32   .interpX    : { *(.interp)    } : NONE
   33   /DISCARD/   : { *(.interp)    } 
   34 
   35   /* Also delete notes */
   36   /DISCARD/   : { *(.note.*)    } 
   37 
   38   .hash          : { *(.hash)           }
   39   .dynsym        : { *(.dynsym)         }
   40   .dynstr        : { *(.dynstr)         }
   41   .gnu.version   : { *(.gnu.version)    }
   42   .gnu.version_d   : { *(.gnu.version_d)        }
   43   .gnu.version_r   : { *(.gnu.version_r)        }
   44   .rela.text     :
   45     { *(.rela.text) *(.rela.gnu.linkonce.t*) }
   46   .rela.data     :
   47     { *(.rela.data) *(.rela.gnu.linkonce.d*) }
   48   .rela.rodata   :
   49     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
   50   .rela.got      : { *(.rela.got)               }
   51   .rela.got1     : { *(.rela.got1)              }
   52   .rela.got2     : { *(.rela.got2)              }
   53   .rela.ctors    : { *(.rela.ctors)     }
   54   .rela.dtors    : { *(.rela.dtors)     }
   55   .rela.init     : { *(.rela.init)      }
   56   .rela.fini     : { *(.rela.fini)      }
   57   .rela.bss      : { *(.rela.bss)               }
   58   .rela.plt      : { *(.rela.plt)               }
   59   .rela.sdata    : { *(.rela.sdata)             }
   60   .rela.sbss     : { *(.rela.sbss)              }
   61   .rela.sdata2   : { *(.rela.sdata2)            }
   62   .rela.sbss2    : { *(.rela.sbss2)             }
   63 
   64   .init      : { *(.init)    } =0
   65   .fini      : { *(.fini)    } =0
   66   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
   67   .rodata1   : { *(.rodata1) }
   68   .sdata2    : { *(.sdata2)  }
   69   .sbss2     : { *(.sbss2)   }
   70   /* Adjust the address for the data segment to the next page up. */
   71   . = ALIGN(4096);
   72   .data.read_frequently :
   73   {
   74     *(SORT_BY_ALIGNMENT(.data.read_frequently))
   75   }
   76   .data.read_mostly :
   77   {
   78     *(.data.read_mostly)
   79   }
   80   . = ALIGN(128);
   81   .data.exclusive_cache_line :
   82   {
   83     *(.data.exclusive_cache_line)
   84   }
   85   . = ALIGN(128);
   86   .data    :
   87   {
   88     *(.data)
   89     *(.gnu.linkonce.d*)
   90   }
   91   .data1     : { *(.data1) }
   92   .toc1      : ALIGN(8) { *(.toc1) }
   93   .opd       : ALIGN(8) { KEEP (*(.opd)) }
   94   .branch_lt : ALIGN(8) { *(.branch_lt) }
   95   . = ALIGN(4096);
   96   .got       : ALIGN(8) { __tocbase = .; *(.got .toc) }
   97 
   98   .dynamic        : { *(.dynamic) }
   99   /* Put .ctors and .dtors next to the .got2 section, so that the pointers
  100      get relocated with -mrelocatable. Also put in the .fixup pointers.
  101      The current compiler no longer needs this, but keep it around for 2.7.2  */
  102                 PROVIDE (_GOT2_START_ = .);
  103   .got2           :  { *(.got2) }
  104                 PROVIDE (__CTOR_LIST__ = .);
  105   .ctors          : { *(.ctors) }
  106                 PROVIDE (__CTOR_END__ = .);
  107                 PROVIDE (__DTOR_LIST__ = .);
  108   .dtors          : { *(.dtors) }
  109                 PROVIDE (__DTOR_END__ = .);
  110                 PROVIDE (_FIXUP_START_ = .);
  111   .fixup          : { *(.fixup) }
  112                 PROVIDE (_FIXUP_END_ = .);
  113                 PROVIDE (_GOT2_END_ = .);
  114   /* We want the small data sections together, so single-instruction offsets
  115      can access them all, and initialized data all before uninitialized, so
  116      we can shorten the on-disk segment size.  */
  117   .sdata     : { *(.sdata) }
  118   _edata  =  .;
  119   PROVIDE (edata = .);
  120   .sbss      :
  121   {
  122     PROVIDE (__sbss_start = .);
  123     *(.sbss)
  124     *(.scommon)
  125     *(.dynsbss)
  126     PROVIDE (__sbss_end = .);
  127   }
  128   .plt   : { *(.plt) }
  129   .bss       :
  130   {
  131    PROVIDE (__bss_start = .);
  132    *(.dynbss)
  133    *(.bss)
  134    *(COMMON)
  135   }
  136   _end = . ;
  137   PROVIDE (end = .);
  138   /* Stabs debugging sections.  */
  139   .stab 0 : { *(.stab) }
  140   .stabstr 0 : { *(.stabstr) }
  141   /* DWARF debug sections.
  142      Symbols in the DWARF debugging sections are relative to the beginning
  143      of the section so we begin them at 0.  */
  144   /* DWARF 1 */
  145   .debug          0 : { *(.debug) }
  146   .line           0 : { *(.line) }
  147   /* GNU DWARF 1 extensions */
  148   .debug_srcinfo  0 : { *(.debug_srcinfo) }
  149   .debug_sfnames  0 : { *(.debug_sfnames) }
  150   /* DWARF 1.1 and DWARF 2 */
  151   .debug_aranges  0 : { *(.debug_aranges) }
  152   .debug_pubnames 0 : { *(.debug_pubnames) }
  153   /* DWARF 2 */
  154   .debug_info     0 : { *(.debug_info) }
  155   .debug_abbrev   0 : { *(.debug_abbrev) }
  156   .debug_line     0 : { *(.debug_line) }
  157   .debug_frame    0 : { *(.debug_frame) }
  158   .debug_str      0 : { *(.debug_str) }
  159   .debug_loc      0 : { *(.debug_loc) }
  160   .debug_macinfo  0 : { *(.debug_macinfo) }
  161   /* SGI/MIPS DWARF 2 extensions */
  162   .debug_weaknames 0 : { *(.debug_weaknames) }
  163   .debug_funcnames 0 : { *(.debug_funcnames) }
  164   .debug_typenames 0 : { *(.debug_typenames) }
  165   .debug_varnames  0 : { *(.debug_varnames) }
  166   /* These must appear regardless of  .  */
  167 }
  168 

Cache object: 52becbb327ae771bf9594b868e3a391f


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