summaryrefslogtreecommitdiff
path: root/package/etrax-tools/src/e100boot/cbl/src/ldscript
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2018-06-16 19:03:23 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2018-06-16 19:05:00 +0200
commit0641bdb4a55e89acb3dcfb7785df57304d82f155 (patch)
treed7f9fa0c0a8d7140befb9c001fd51e84e8d8e7e0 /package/etrax-tools/src/e100boot/cbl/src/ldscript
parent5f32878499175337bcb6597562fe9ff3d01f577d (diff)
add etrax-tools
Diffstat (limited to 'package/etrax-tools/src/e100boot/cbl/src/ldscript')
-rw-r--r--package/etrax-tools/src/e100boot/cbl/src/ldscript38
1 files changed, 38 insertions, 0 deletions
diff --git a/package/etrax-tools/src/e100boot/cbl/src/ldscript b/package/etrax-tools/src/e100boot/cbl/src/ldscript
new file mode 100644
index 000000000..24c8a318a
--- /dev/null
+++ b/package/etrax-tools/src/e100boot/cbl/src/ldscript
@@ -0,0 +1,38 @@
+SECTIONS
+{
+ . = 0x380000f0;
+ __Stext = .;
+
+ .text :
+ {
+ KEEP (*(.startup))
+ KEEP (*(.text))
+ *(.text.*)
+ KEEP (*(.rodata))
+ *(.rodata.*)
+ } =0
+
+ __Etext = .;
+
+ .data :
+ {
+ __Sdata = .;
+ KEEP (*(.data))
+ *(.data.*)
+ }
+
+ __Edata = .;
+ . = ALIGN (4);
+ __Sbss = .;
+ .bss :
+ {
+ /* The network crc will land in the first four bytes of the
+ bss. Move the variables out of the way. */
+ . = . + 12;
+ *(.bss.*)
+ *(COMMON)
+ }
+
+ __Ebss = .;
+
+}