mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 10:03:47 +08:00
fd67aa1129
Adds two new external authors to etc/update-copyright.py to cover bfd/ax_tls.m4, and adds gprofng to dirs handled automatically, then updates copyright messages as follows: 1) Update cgen/utils.scm emitted copyrights. 2) Run "etc/update-copyright.py --this-year" with an extra external author I haven't committed, 'Kalray SA.', to cover gas testsuite files (which should have their copyright message removed). 3) Build with --enable-maintainer-mode --enable-cgen-maint=yes. 4) Check out */po/*.pot which we don't update frequently.
105 lines
2.4 KiB
Scala
105 lines
2.4 KiB
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.
|
|
#
|
|
# Copyright (C) 2014-2024 Free Software Foundation, Inc.
|
|
#
|
|
# 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.
|
|
|
|
cat <<EOF
|
|
/* Copyright (C) 2014-2024 Free Software Foundation, Inc.
|
|
|
|
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. */
|
|
|
|
OUTPUT_ARCH(${ARCH})
|
|
${RELOCATING+${LIB_SEARCH_DIRS}}
|
|
${RELOCATING+ENTRY (__start)}
|
|
SECTIONS
|
|
{
|
|
.pad 0 : { *(.pad) }
|
|
|
|
. = ALIGN (0x10000000 + SIZEOF_HEADERS, 32);
|
|
.text ${RELOCATING-0} : {
|
|
${RELOCATING+PROVIDE (_text = .);}
|
|
*(.text)
|
|
*(.pr)
|
|
*(.ro)
|
|
*(.db)
|
|
*(.gl)
|
|
*(.xo)
|
|
*(.ti)
|
|
*(.tb)
|
|
${RELOCATING+PROVIDE (_etext = .);}
|
|
}
|
|
|
|
/* .tdata and .tbss addresses are representing the offset from
|
|
the TLS pointer. It starts at -0x7800 for 64bit and -0x7c00
|
|
for 32bit.
|
|
TODO: 32bit should have -0x7c00 but it works like this for
|
|
now.
|
|
The other particularity is that they must be before .data
|
|
sections. But .data must be aligned correctly as if the
|
|
addresses were contiguous. This means that the correct
|
|
address must be restored, taking into account: the size of
|
|
.text, its alignment 2^5, the size of .tdata and its
|
|
aligment 2^4. */
|
|
.tdata -0x7800 : {
|
|
*(.tdata)
|
|
*(.tl)
|
|
}
|
|
|
|
.tbss : {
|
|
*(.tbss)
|
|
*(.ul)
|
|
}
|
|
|
|
. = ${RELOCATING+(ALIGN (0x10000000 + SIZEOF_HEADERS, 32)) + }SIZEOF(.text);
|
|
. = ALIGN (.,32);
|
|
. = . + SIZEOF(.tdata);
|
|
. = ALIGN (.,16);
|
|
|
|
/* .data starting address must be in a different segment than
|
|
the .text addresses. Thus, 0x10000000 is added. */
|
|
. = ALIGN (0x10000000) + (. & 0xfff);
|
|
.data . : {
|
|
${RELOCATING+PROVIDE (_data = .);}
|
|
*(.data)
|
|
*(.rw)
|
|
*(.sv)
|
|
*(.sv64)
|
|
*(.sv3264)
|
|
*(.ua)
|
|
. = ALIGN(4);
|
|
${CONSTRUCTING+CONSTRUCTORS}
|
|
*(.ds)
|
|
*(.tc0)
|
|
*(.tc)
|
|
*(.td)
|
|
*(.te)
|
|
${RELOCATING+PROVIDE (_edata = .);}
|
|
}
|
|
.bss : {
|
|
*(.tocbss)
|
|
*(.bss)
|
|
*(.bs)
|
|
*(.uc)
|
|
*(COMMON)
|
|
${RELOCATING+PROVIDE (_end = .);}
|
|
${RELOCATING+PROVIDE (end = .);}
|
|
}
|
|
|
|
.loader : {
|
|
*(.loader)
|
|
}
|
|
|
|
.debug : {
|
|
*(.debug)
|
|
}
|
|
}
|
|
EOF
|