1999-05-03 09:29:11 +02:00
|
|
|
# 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_FORMAT("${OUTPUT_FORMAT}")
|
|
|
|
OUTPUT_ARCH(${ARCH})
|
|
|
|
${RELOCATING+${LIB_SEARCH_DIRS}}
|
|
|
|
ENTRY(__start)
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.pad 0 : { *(.pad) }
|
2001-05-24 22:59:23 +02:00
|
|
|
|
|
|
|
. = 0x10000000;
|
1999-05-03 09:29:11 +02:00
|
|
|
.text ${RELOCATING-0} : {
|
|
|
|
${RELOCATING+PROVIDE (_text = .);}
|
|
|
|
*(.text)
|
|
|
|
*(.pr)
|
|
|
|
*(.ro)
|
|
|
|
*(.db)
|
|
|
|
*(.gl)
|
|
|
|
*(.xo)
|
|
|
|
*(.ti)
|
|
|
|
*(.tb)
|
|
|
|
${RELOCATING+PROVIDE (_etext = .);}
|
|
|
|
}
|
2001-05-24 22:59:23 +02:00
|
|
|
. = 0x20000000;
|
|
|
|
.data . : {
|
1999-05-03 09:29:11 +02:00
|
|
|
${RELOCATING+PROVIDE (_data = .);}
|
|
|
|
*(.data)
|
|
|
|
*(.rw)
|
|
|
|
*(.sv)
|
2001-05-24 22:59:23 +02:00
|
|
|
*(.sv64)
|
|
|
|
*(.sv3264)
|
1999-05-03 09:29:11 +02:00
|
|
|
*(.ua)
|
|
|
|
. = ALIGN(4);
|
|
|
|
${CONSTRUCTING+CONSTRUCTORS}
|
|
|
|
*(.ds)
|
|
|
|
*(.tc0)
|
|
|
|
*(.tc)
|
|
|
|
*(.td)
|
|
|
|
${RELOCATING+PROVIDE (_edata = .);}
|
|
|
|
}
|
|
|
|
.bss : {
|
|
|
|
*(.tocbss)
|
|
|
|
*(.bss)
|
|
|
|
*(.bs)
|
|
|
|
*(.uc)
|
|
|
|
*(COMMON)
|
|
|
|
${RELOCATING+PROVIDE (_end = .);}
|
|
|
|
${RELOCATING+PROVIDE (end = .);}
|
|
|
|
}
|
2001-05-24 22:59:23 +02:00
|
|
|
|
|
|
|
.loader : {
|
1999-05-03 09:29:11 +02:00
|
|
|
*(.loader)
|
|
|
|
}
|
2001-05-24 22:59:23 +02:00
|
|
|
|
|
|
|
.debug : {
|
1999-05-03 09:29:11 +02:00
|
|
|
*(.debug)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|