aboutsummaryrefslogtreecommitdiff
path: root/src/PL0/PL0_test.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/PL0/PL0_test.ld')
-rw-r--r--src/PL0/PL0_test.ld19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/PL0/PL0_test.ld b/src/PL0/PL0_test.ld
new file mode 100644
index 0000000..b1d06f4
--- /dev/null
+++ b/src/PL0/PL0_test.ld
@@ -0,0 +1,19 @@
+/* linker script for creating the example userspace program PL0_test
+ */
+
+/* no ENTRY() statement - this executable is run by jumping to it */
+
+SECTIONS
+{
+ /* my thought up address userspace programs should run from */
+ . = 0xaaa00000;
+
+ __start = .;
+ .another_weird_section_name_that_doesnt_matter :
+ {
+ /* have entry point at the beginning */
+ KEEP(PL0_test.o)
+ *(*)
+ }
+ __end = .;
+}