summaryrefslogtreecommitdiffstats
path: root/ld/scripttempl/or32.sc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-01-31 17:33:08 +0000
committerNick Clifton <nickc@redhat.com>2002-01-31 17:33:08 +0000
commit3b16e843f2a75ccf8e7ecc5102e1217a122a05ad (patch)
tree683e5fc887a3f4f43c06e85a8e1f6c68c0a63f92 /ld/scripttempl/or32.sc
parent6d9c411afd0301f0262ff63d6dc59dac38f58e63 (diff)
downloadppe42-binutils-3b16e843f2a75ccf8e7ecc5102e1217a122a05ad.tar.gz
ppe42-binutils-3b16e843f2a75ccf8e7ecc5102e1217a122a05ad.zip
Add support for OpenRISC 32-bit embedded processor
Diffstat (limited to 'ld/scripttempl/or32.sc')
-rw-r--r--ld/scripttempl/or32.sc37
1 files changed, 37 insertions, 0 deletions
diff --git a/ld/scripttempl/or32.sc b/ld/scripttempl/or32.sc
new file mode 100644
index 0000000000..2825b1e83e
--- /dev/null
+++ b/ld/scripttempl/or32.sc
@@ -0,0 +1,37 @@
+cat <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+${LIB_SEARCH_DIRS}
+
+SECTIONS
+{
+ .text : {
+ *(.text)
+ ${RELOCATING+ __etext = .};
+ ${CONSTRUCTING+ __CTOR_LIST__ = .;}
+ ${CONSTRUCTING+ LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)}
+ ${CONSTRUCTING+ *(.ctors)}
+ ${CONSTRUCTING+ LONG(0)}
+ ${CONSTRUCTING+ __CTOR_END__ = .;}
+ ${CONSTRUCTING+ __DTOR_LIST__ = .;}
+ ${CONSTRUCTING+ LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)}
+ ${CONSTRUCTING+ *(.dtors)}
+ ${CONSTRUCTING+ LONG(0)}
+ ${CONSTRUCTING+ __DTOR_END__ = .;}
+ *(.lit)
+ *(.shdata)
+ }
+ .shbss SIZEOF(.text) + ADDR(.text) : {
+ *(.shbss)
+ }
+ .data : {
+ *(.data)
+ ${RELOCATING+ __edata = .};
+ }
+ .bss SIZEOF(.data) + ADDR(.data) :
+ {
+ *(.bss)
+ *(COMMON)
+ ${RELOCATING+ __end = ALIGN(0x8)};
+ }
+}
+EOF
OpenPOWER on IntegriCloud