From c8ebd81dfc4b8f4c1d488202d0962ac85e977b51 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 25 Jun 2023 12:09:26 +0100 Subject: move over to linker based jumps --- lib/link.ld | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/link.ld (limited to 'lib/link.ld') diff --git a/lib/link.ld b/lib/link.ld new file mode 100644 index 0000000..b30b082 --- /dev/null +++ b/lib/link.ld @@ -0,0 +1,18 @@ +ENTRY(_op) + +PHDRS { + headers PT_PHDR PHDRS; + text PT_LOAD FILEHDR PHDRS; + data PT_LOAD; +} + +SECTIONS { + . = SIZEOF_HEADERS; + .text : { *(.text*); } :text + + __next_op = .; + + /* mostly just to silence warnings, operations aren't allowed to have + * any data in them */ + .data : { *(.data*) } :data +} -- cgit v1.3