File:  [DragonFly] / src / libexec / rtld-elf / i386 / elf_rtld.x
Revision 1.2: download - view: text, annotated - select for diffs
Wed Nov 19 00:51:38 2003 UTC (10 years, 5 months ago) by dillon
Branches: MAIN
CVS tags: HEAD, DragonFly_Stable, DragonFly_Snap29Sep2004, DragonFly_Snap13Sep2004, DragonFly_RELEASE_2_0_Slip, DragonFly_RELEASE_2_0, DragonFly_RELEASE_1_8_Slip, DragonFly_RELEASE_1_8, DragonFly_RELEASE_1_6_Slip, DragonFly_RELEASE_1_6, DragonFly_RELEASE_1_4_Slip, DragonFly_RELEASE_1_4, DragonFly_RELEASE_1_2_Slip, DragonFly_RELEASE_1_2, DragonFly_RELEASE_1_12_Slip, DragonFly_RELEASE_1_12, DragonFly_RELEASE_1_10_Slip, DragonFly_RELEASE_1_10, DragonFly_Preview, DragonFly_1_0_REL, DragonFly_1_0_RC1, DragonFly_1_0A_REL
Change the system name from 'FreeBSD' to 'DragonFly'.  We are now officially
DragonFly 1.0-CURRENT.  The change is fairly straight forward but involves
adding support for the 'DragonFly' OS type in various gnu contributed pieces
(typically configure based), as well as compiler and BFD support for building
GCC and friends (basically just copied the FreeBSD files for DragonFly).

Additionally, hack the ports makefiles with UNAME_xxx environment variables
so ports builds think its still a FreeBSD-4.8 system.  Otherwise most of the
ports will fail.

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