diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-25 12:09:26 +0100 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-25 12:09:26 +0100 |
| commit | c8ebd81dfc4b8f4c1d488202d0962ac85e977b51 (patch) | |
| tree | 4265b796348e8fdea95ceb4484398145231d2038 /lib/link.ld | |
| parent | 4a522e044886ed140cbf31f48e797edbd01cc9eb (diff) | |
| download | copyjit-c8ebd81dfc4b8f4c1d488202d0962ac85e977b51.tar.gz copyjit-c8ebd81dfc4b8f4c1d488202d0962ac85e977b51.zip | |
move over to linker based jumps
Diffstat (limited to 'lib/link.ld')
| -rw-r--r-- | lib/link.ld | 18 |
1 files changed, 18 insertions, 0 deletions
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 +} |
