home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 110 / EnigmaAmiga110CD.iso / indispensabili / utility / apdf / xpdf-0.80 / xpdf / myelf32ppc < prev    next >
Text File  |  1999-04-11  |  5KB  |  139 lines

  1. OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc",
  2.           "elf32-powerpc")
  3. OUTPUT_ARCH(powerpc)
  4. SEARCH_DIR(/gg/lib/gcc-lib/ppc-amigaos/egcs-2.90.23/librilc);
  5. SEARCH_DIR(/gg/lib/gcc-lib/ppc-amigaos/egcs-2.90.23/lib);
  6. SEARCH_DIR(/gg/lib/gcc-lib/ppc-amigaos/egcs-2.90.23);
  7. SEARCH_DIR(/gg/ppc-amigaos/lib);
  8. /*ENTRY(_start)*/
  9. ENTRY(__entry)
  10.  /* For some reason, the Solaris linker makes bad executables
  11.   if gld -r is used and the intermediate file has sections starting
  12.   at non-zero addresses.  Could be a Solaris ld bug, could be a GNU ld
  13.   bug.  But for now assigning the zero vmas works.  */
  14. SECTIONS
  15. {
  16.   /* Read-only sections, merged into text segment: */
  17.   .interp 0 : { *(.interp) }
  18.   .hash         0 : { *(.hash)          }
  19.   .dynsym       0 : { *(.dynsym)        }
  20.   .dynstr       0 : { *(.dynstr)        }
  21.   .rela.text    0 : { *(.rela.text)     }
  22.   .rela.data    0 : { *(.rela.data)     }
  23.   .rela.rodata  0 : { *(.rela.rodata)   }
  24.   .rela.got     0 : { *(.rela.got)      }
  25.   .rela.got1    0 : { *(.rela.got1)     }
  26.   .rela.got2    0 : { *(.rela.got2)     }
  27.   .rela.ctors   0 : { *(.rela.ctors)    }
  28.   .rela.dtors   0 : { *(.rela.dtors)    }
  29.   .rela.init    0 : { *(.rela.init)     }
  30.   .rela.fini    0 : { *(.rela.fini)     }
  31.   .rela.bss     0 : { *(.rela.bss)      }
  32.   .rela.plt     0 : { *(.rela.plt)      }
  33.   .rela.sdata   0 : { *(.rela.sdata2)   }
  34.   .rela.sbss    0 : { *(.rela.sbss2)    }
  35.   .rela.sdata2  0 : { *(.rela.sdata2)   }
  36.   .rela.sbss2   0 : { *(.rela.sbss2)    }
  37.   .plt 0 : { *(.plt) }
  38.   .text    0 :
  39.   {
  40.     *(.text)
  41.     /* .gnu.warning sections are handled specially by elf32.em.  */
  42.     *(.gnu.warning)
  43.   } =0
  44.   .init         0 : { *(.init)          } =0
  45.   .fini         0 : { *(.fini)          } =0
  46.   .rodata       0 : { *(.rodata)  }
  47.   .rodata1      0 : { *(.rodata1) }
  48.   /*.sdata2 0 : { *(.sdata2) }
  49.   .sbss2 0 : { *(.sbss2) }*/
  50.   /* Adjust the address for the data segment.  We want to adjust up to
  51.      the same address within the page on the next page up.  It would
  52.      be more correct to do this:
  53.      The current expression does not correctly handle the case of a
  54.      text segment ending precisely at the end of a page; it causes the
  55.      data segment to skip a page.  The above expression does not have
  56.      this problem, but it will currently (2/95) cause BFD to allocate
  57.      a single segment, combining both text and data, for this case.
  58.      This will prevent the text segment from being shared among
  59.      multiple executions of the program; I think that is more
  60.      important than losing a page of the virtual address space (note
  61.      that no actual memory is lost; the page which is skipped can not
  62.      be referenced).  */
  63.   .data  0 :
  64.   {
  65.       PROVIDE (__data_start = .);
  66.       *(.data)
  67.       CONSTRUCTORS
  68.       PROVIDE (__data_end = .);
  69.   }
  70.   /*.data1 0 : { *(.data1) }*/
  71.   .got1         0 : { *(.got1) }
  72.   .dynamic      0 : { *(.dynamic) }
  73.   /* Put .ctors and .dtors next to the .got2 section, so that the pointers
  74.      get relocated with -mrelocatable. Also put in the .fixup pointers.
  75.      The current compiler no longer needs this, but keep it around for 2.7.2  */
  76.  
  77.   .got2         0 :  { *(.got2) }
  78.  
  79.   .ctors        0 :
  80.   {
  81.       PROVIDE (__CTOR_LIST__ = .);
  82.       *(.ctors)
  83.       PROVIDE (__END_CTOR_LIST__ = .);
  84.       LONG(0)
  85.   }
  86.   .dtors        0 :
  87.   {
  88.       PROVIDE (__DTOR_LIST__ = .);
  89.       *(.dtors)
  90.       PROVIDE (__END_DTOR_LIST__ = .);
  91.       LONG(0)
  92.   }
  93.   .fixup        0 : { *(.fixup) }
  94.   .got          0 : { *(.got) }
  95.   .got.plt      0 : { *(.got.plt) }
  96.   /* We want the small data sections together, so single-instruction offsets
  97.      can access them all, and initialized data all before uninitialized, so
  98.      we can shorten the on-disk segment size.  */
  99.   .sdata        0 :
  100.   {
  101.       PROVIDE (__sdata_start = .);
  102.       *(.sdata)
  103.       PROVIDE (__sdata_end = .);
  104.   }
  105.   /*_edata  =  .;*/
  106.   .sbss    0 :
  107.   {
  108.     PROVIDE (__sbss_start = .);
  109.     *(.sbss)
  110.     *(.scommon)
  111.     PROVIDE (__sbss_end = .);
  112.   }
  113.   .bss     0 :
  114.   {
  115.    PROVIDE (__bss_start = .);
  116.    *(.dynbss)
  117.    *(.bss)
  118.    *(COMMON)
  119.    PROVIDE (__bss_end = .);
  120.   }
  121.   /*_end = . ;
  122.   PROVIDE (end = .);*/
  123.   /* These are needed for ELF backends which have not yet been
  124.      converted to the new style linker.  */
  125.   .stab 0 : { *(.stab) }
  126.   .stabstr 0 : { *(.stabstr) }
  127.   /* DWARF debug sections.
  128.      Symbols in the .debug DWARF section are relative to the beginning of the
  129.      section so we begin .debug at 0.  It's not clear yet what needs to happen
  130.      for the others.   */
  131.   .debug          0 : { *(.debug) }
  132.   .debug_srcinfo  0 : { *(.debug_srcinfo) }
  133.   .debug_aranges  0 : { *(.debug_aranges) }
  134.   .debug_pubnames 0 : { *(.debug_pubnames) }
  135.   .debug_sfnames  0 : { *(.debug_sfnames) }
  136.   .line           0 : { *(.line) }
  137.   /* These must appear regardless of .  */
  138. }
  139.