2012-03-26 19:18:29 +00: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.
|
2015-08-28 15:32:19 +00:00
|
|
|
#
|
2022-10-27 18:43:13 +00:00
|
|
|
# Copyright (C) 2014-2018 Free Software Foundation, Inc.
|
2018-12-28 15:25:28 +00:00
|
|
|
#
|
2015-08-28 15:32:19 +00: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.
|
2012-03-26 19:18:29 +00:00
|
|
|
|
|
|
|
cat <<EOF
|
2022-10-27 18:43:13 +00:00
|
|
|
/* Copyright (C) 2014-2018 Free Software Foundation, Inc.
|
2015-08-28 15:32:19 +00: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. */
|
|
|
|
|
2012-03-26 19:18:29 +00:00
|
|
|
OUTPUT_ARCH(${ARCH})
|
|
|
|
${RELOCATING+${LIB_SEARCH_DIRS}}
|
|
|
|
${RELOCATING+ENTRY (__start)}
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.pad 0 : { *(.pad) }
|
|
|
|
|
2014-09-12 22:14:23 +00:00
|
|
|
. = ALIGN (0x10000000 + SIZEOF_HEADERS, 32);
|
2012-03-26 19:18:29 +00:00
|
|
|
.text ${RELOCATING-0} : {
|
|
|
|
${RELOCATING+PROVIDE (_text = .);}
|
|
|
|
*(.text)
|
|
|
|
*(.pr)
|
|
|
|
*(.ro)
|
|
|
|
*(.db)
|
|
|
|
*(.gl)
|
|
|
|
*(.xo)
|
|
|
|
*(.ti)
|
|
|
|
*(.tb)
|
|
|
|
${RELOCATING+PROVIDE (_etext = .);}
|
|
|
|
}
|
2014-09-12 22:14:23 +00:00
|
|
|
|
|
|
|
. = ALIGN (ALIGN (0x10000000) + (. & 0xfff), 32);
|
2012-03-26 19:18:29 +00:00
|
|
|
.data . : {
|
|
|
|
${RELOCATING+PROVIDE (_data = .);}
|
|
|
|
*(.data)
|
|
|
|
*(.rw)
|
|
|
|
*(.sv)
|
|
|
|
*(.sv64)
|
|
|
|
*(.sv3264)
|
|
|
|
*(.ua)
|
|
|
|
. = ALIGN(4);
|
|
|
|
${CONSTRUCTING+CONSTRUCTORS}
|
|
|
|
*(.ds)
|
|
|
|
*(.tc0)
|
|
|
|
*(.tc)
|
|
|
|
*(.td)
|
|
|
|
${RELOCATING+PROVIDE (_edata = .);}
|
|
|
|
}
|
|
|
|
.bss : {
|
|
|
|
*(.tocbss)
|
|
|
|
*(.bss)
|
|
|
|
*(.bs)
|
|
|
|
*(.uc)
|
|
|
|
*(COMMON)
|
|
|
|
${RELOCATING+PROVIDE (_end = .);}
|
|
|
|
${RELOCATING+PROVIDE (end = .);}
|
|
|
|
}
|
|
|
|
|
|
|
|
.loader : {
|
|
|
|
*(.loader)
|
|
|
|
}
|
2018-12-28 15:25:28 +00:00
|
|
|
|
2012-03-26 19:18:29 +00:00
|
|
|
.debug : {
|
|
|
|
*(.debug)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|