elf_i386.sh 834 B

12345678910111213141516171819202122232425262728293031323334
  1. . ${srcdir}/emulparams/plt_unwind.sh
  2. . ${srcdir}/emulparams/extern_protected_data.sh
  3. SCRIPT_NAME=elf
  4. OUTPUT_FORMAT="elf32-i386"
  5. NO_RELA_RELOCS=yes
  6. TEXT_START_ADDR=0x08048000
  7. MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
  8. COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
  9. ARCH=i386
  10. MACHINE=
  11. TEMPLATE_NAME=elf32
  12. GENERATE_SHLIB_SCRIPT=yes
  13. GENERATE_PIE_SCRIPT=yes
  14. NO_SMALL_DATA=yes
  15. SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 12 ? 12 : 0"
  16. IREL_IN_PLT=
  17. # Reuse TINY_READONLY_SECTION which is placed right after .plt section.
  18. TINY_READONLY_SECTION="
  19. .plt.got ${RELOCATING-0} : { *(.plt.got) }
  20. "
  21. # Linux modify the default library search path to first include
  22. # a 32-bit specific directory.
  23. case "$target" in
  24. x86_64*-linux* | i[3-7]86*-linux*)
  25. case "$EMULATION_NAME" in
  26. *i386*)
  27. LIBPATH_SUFFIX=32
  28. LIBPATH_SUFFIX_SKIP=64
  29. ;;
  30. esac
  31. ;;
  32. esac