1999-05-03 15:29:11 +08: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.
|
2014-08-20 17:34:58 +08:00
|
|
|
#
|
2017-01-02 11:36:43 +08:00
|
|
|
# Copyright (C) 2014-2017 Free Software Foundation, Inc.
|
2014-08-20 17:34:58 +08:00
|
|
|
#
|
|
|
|
# Copying and distribution of this file, with or without modification,
|
|
|
|
# are permitted in any medium without royalty provided the copyright
|
|
|
|
# notice and this notice are preserved.
|
2001-12-04 07:15:28 +08:00
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
cat <<EOF
|
2017-01-02 11:36:43 +08:00
|
|
|
/* Copyright (C) 2014-2017 Free Software Foundation, Inc.
|
2014-08-20 17:34:58 +08:00
|
|
|
|
|
|
|
Copying and distribution of this script, with or without modification,
|
|
|
|
are permitted in any medium without royalty provided the copyright
|
|
|
|
notice and this notice are preserved. */
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
OUTPUT_ARCH(${ARCH})
|
|
|
|
${RELOCATING+${LIB_SEARCH_DIRS}}
|
2009-09-09 19:59:14 +08:00
|
|
|
${RELOCATING+ENTRY (__start)}
|
1999-05-03 15:29:11 +08:00
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.pad 0 : { *(.pad) }
|
2001-05-25 04:59:23 +08:00
|
|
|
|
2011-11-03 19:53:39 +08:00
|
|
|
. = ALIGN (0x10000000 + SIZEOF_HEADERS, 32);
|
2009-10-10 12:34:39 +08:00
|
|
|
.text ${RELOCATING-0} : {
|
1999-05-03 15:29:11 +08:00
|
|
|
${RELOCATING+PROVIDE (_text = .);}
|
|
|
|
*(.text)
|
|
|
|
*(.pr)
|
|
|
|
*(.ro)
|
|
|
|
*(.db)
|
|
|
|
*(.gl)
|
|
|
|
*(.xo)
|
|
|
|
*(.ti)
|
|
|
|
*(.tb)
|
|
|
|
${RELOCATING+PROVIDE (_etext = .);}
|
|
|
|
}
|
2011-11-03 19:53:39 +08:00
|
|
|
|
|
|
|
. = ALIGN (ALIGN (0x10000000) + (. & 0xfff), 32);
|
2001-05-25 04:59:23 +08:00
|
|
|
.data . : {
|
1999-05-03 15:29:11 +08:00
|
|
|
${RELOCATING+PROVIDE (_data = .);}
|
|
|
|
*(.data)
|
|
|
|
*(.rw)
|
|
|
|
*(.sv)
|
2001-05-25 04:59:23 +08:00
|
|
|
*(.sv64)
|
|
|
|
*(.sv3264)
|
1999-05-03 15:29:11 +08: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-25 04:59:23 +08:00
|
|
|
|
|
|
|
.loader : {
|
1999-05-03 15:29:11 +08:00
|
|
|
*(.loader)
|
|
|
|
}
|
2001-05-25 04:59:23 +08:00
|
|
|
|
|
|
|
.debug : {
|
1999-05-03 15:29:11 +08:00
|
|
|
*(.debug)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|