binutils-gdb/ld/scripttempl/aix.sc
Ian Lance Taylor 57fc1e90b7 * 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.
1995-10-25 15:49:27 +00:00

51 lines
869 B
Scala

# 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