aix.sc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # AIX linker script.
  2. # AIX always uses shared libraries. The section VMA appears to be
  3. # unimportant. The native linker aligns the sections on boundaries
  4. # specified by the -H option.
  5. #
  6. # Copyright (C) 2014-2015 Free Software Foundation, Inc.
  7. #
  8. # Copying and distribution of this file, with or without modification,
  9. # are permitted in any medium without royalty provided the copyright
  10. # notice and this notice are preserved.
  11. cat <<EOF
  12. /* Copyright (C) 2014-2015 Free Software Foundation, Inc.
  13. Copying and distribution of this script, with or without modification,
  14. are permitted in any medium without royalty provided the copyright
  15. notice and this notice are preserved. */
  16. OUTPUT_ARCH(${ARCH})
  17. ${RELOCATING+${LIB_SEARCH_DIRS}}
  18. ${RELOCATING+ENTRY (__start)}
  19. SECTIONS
  20. {
  21. .pad 0 : { *(.pad) }
  22. . = ALIGN (0x10000000 + SIZEOF_HEADERS, 32);
  23. .text ${RELOCATING-0} : {
  24. ${RELOCATING+PROVIDE (_text = .);}
  25. *(.text)
  26. *(.pr)
  27. *(.ro)
  28. *(.db)
  29. *(.gl)
  30. *(.xo)
  31. *(.ti)
  32. *(.tb)
  33. ${RELOCATING+PROVIDE (_etext = .);}
  34. }
  35. . = ALIGN (ALIGN (0x10000000) + (. & 0xfff), 32);
  36. .data . : {
  37. ${RELOCATING+PROVIDE (_data = .);}
  38. *(.data)
  39. *(.rw)
  40. *(.sv)
  41. *(.sv64)
  42. *(.sv3264)
  43. *(.ua)
  44. . = ALIGN(4);
  45. ${CONSTRUCTING+CONSTRUCTORS}
  46. *(.ds)
  47. *(.tc0)
  48. *(.tc)
  49. *(.td)
  50. ${RELOCATING+PROVIDE (_edata = .);}
  51. }
  52. .bss : {
  53. *(.tocbss)
  54. *(.bss)
  55. *(.bs)
  56. *(.uc)
  57. *(COMMON)
  58. ${RELOCATING+PROVIDE (_end = .);}
  59. ${RELOCATING+PROVIDE (end = .);}
  60. }
  61. .loader : {
  62. *(.loader)
  63. }
  64. .debug : {
  65. *(.debug)
  66. }
  67. }
  68. EOF