diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-10-25 15:49:27 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-10-25 15:49:27 +0000 |
commit | 57fc1e90b76b35e77b76c48f248b3777a430902a (patch) | |
tree | a3c79ce1ccb9a9ad92e39d0c40830fbbeb2b176f /ld/scripttempl/aix.sc | |
parent | 7d6439d9742cb0fdecc1a045e62a47ae18f5fe82 (diff) | |
download | gdb-57fc1e90b76b35e77b76c48f248b3777a430902a.zip gdb-57fc1e90b76b35e77b76c48f248b3777a430902a.tar.gz gdb-57fc1e90b76b35e77b76c48f248b3777a430902a.tar.bz2 |
* emultempl/aix.em: Add support for various AIX linker options,
for AIX import and export files, and for AIX shared objects.
* scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
Diffstat (limited to 'ld/scripttempl/aix.sc')
-rw-r--r-- | ld/scripttempl/aix.sc | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ld/scripttempl/aix.sc b/ld/scripttempl/aix.sc new file mode 100644 index 0000000..e901f7c --- /dev/null +++ b/ld/scripttempl/aix.sc @@ -0,0 +1,50 @@ +# AIX linker script. +# AIX always uses shared libraries. The section VMA appears to be +# unimportant. The native linker aligns the sections on boundaries +# specified by the -H option. +cat <<EOF +OUTPUT_ARCH(${ARCH}) +ENTRY(__start) +SECTIONS +{ + .pad 0 : { *(.pad) } + ${RELOCATING+PROVIDE (_text = .);} + .text ${RELOCATING-0} : { + *(.text) + *(.pr) + *(.ro) + *(.db) + *(.gl) + *(.xo) + *(.ti) + *(.tb) + } + ${RELOCATING+PROVIDE (_etext = .);} + ${RELOCATING+PROVIDE (_data = .);} + .data ${RELOCATING-0} : { + *(.data) + *(.rw) + *(.sv) + *(.ua) + *(.ds) + *(.tc0) + *(.tc) + *(.td) + } + ${RELOCATING+PROVIDE (_edata = .);} + .bss : { + *(.bss) + *(.bs) + *(.uc) + *(COMMON) + } + ${RELOCATING+PROVIDE (_end = .);} + ${RELOCATING+PROVIDE (end = .);} + .loader 0 : { + *(.loader) + } + .debug 0 : { + *(.debug) + } +} +EOF |