mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
* 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.
This commit is contained in:
50
ld/scripttempl/aix.sc
Normal file
50
ld/scripttempl/aix.sc
Normal file
@ -0,0 +1,50 @@
|
||||
# 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
|
Reference in New Issue
Block a user