mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-11 02:30:42 +00:00
PPC: Make Linker Script put all sections at virtual address 0
This commit is contained in:
parent
3174ac00be
commit
df8031a37e
@ -1,5 +1,5 @@
|
||||
TEMPLATE_NAME=aix
|
||||
SCRIPT_NAME=aix
|
||||
SCRIPT_NAME=ppcmacos
|
||||
OUTPUT_FORMAT="xcoff-powermac"
|
||||
OUTPUT_FORMAT_32BIT="xcoff-powermac"
|
||||
OUTPUT_FORMAT_64BIT="xcoff-powermac"
|
||||
|
75
binutils/ld/scripttempl/ppcmacos.sc
Normal file
75
binutils/ld/scripttempl/ppcmacos.sc
Normal file
@ -0,0 +1,75 @@
|
||||
# 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 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 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 0 : {
|
||||
${RELOCATING+PROVIDE (_text = .);}
|
||||
*(.text)
|
||||
*(.pr)
|
||||
*(.ro)
|
||||
*(.db)
|
||||
*(.gl)
|
||||
*(.xo)
|
||||
*(.ti)
|
||||
*(.tb)
|
||||
${RELOCATING+PROVIDE (_etext = .);}
|
||||
}
|
||||
|
||||
. = ALIGN (ALIGN (0x10000000) + (. & 0xfff), 32);
|
||||
.data 0 : {
|
||||
${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)
|
||||
}
|
||||
|
||||
.debug : {
|
||||
*(.debug)
|
||||
}
|
||||
}
|
||||
EOF
|
Loading…
x
Reference in New Issue
Block a user