aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-07-08 22:44:34 +0000
committerKen Raeburn <raeburn@cygnus>1993-07-08 22:44:34 +0000
commitf90bb826e51c771bc6d1aeba49a328256feec24e (patch)
treec46e395a24072b6d15e1719c414fea4a33dc7916 /ld/scripttempl
parent3b7f6de0e69324fc128f3d01984c858c9313075c (diff)
downloadfsf-binutils-gdb-f90bb826e51c771bc6d1aeba49a328256feec24e.zip
fsf-binutils-gdb-f90bb826e51c771bc6d1aeba49a328256feec24e.tar.gz
fsf-binutils-gdb-f90bb826e51c771bc6d1aeba49a328256feec24e.tar.bz2
initial v9 stuff
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/elf.sc32
1 files changed, 32 insertions, 0 deletions
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
new file mode 100644
index 0000000..0643925
--- /dev/null
+++ b/ld/scripttempl/elf.sc
@@ -0,0 +1,32 @@
+cat <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+OUTPUT_ARCH(${ARCH})
+
+${RELOCATING+${LIB_SEARCH_DIRS}}
+${RELOCATING+__DYNAMIC = 0;}
+${STACKZERO+${RELOCATING+${STACKZERO}}}
+${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}
+SECTIONS
+{
+ .text ${RELOCATING+${TEXT_START_ADDR}}:
+ {
+ CREATE_OBJECT_SYMBOLS
+ *(.text)
+ ${RELOCATING+_etext = ${DATA_ALIGNMENT};}
+ }
+ .data ${RELOCATING+${DATA_ALIGNMENT}} :
+ {
+ *(.data)
+ ${CONSTRUCTING+CONSTRUCTORS}
+ ${RELOCATING+_edata = .;}
+ }
+ .bss ${RELOCATING+SIZEOF(.data) + ADDR(.data)} :
+ {
+ ${RELOCATING+ __bss_start = .};
+ *(.bss)
+ *(COMMON)
+ ${RELOCATING+_end = . };
+ ${RELOCATING+__end = . };
+ }
+}
+EOF