diff options
| author | Ada Christine <adachristine18@gmail.com> | 2021-12-16 12:06:04 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2021-12-16 12:06:04 +0000 |
| commit | ec1233b4fcd61a8d1eccbf030cede36e9848e06c (patch) | |
| tree | 13ffdc3b3948275e8c764ccf10368d555ff4d5e1 /shim/shim.ld | |
| parent | a7f79219706c357c6c15978cea5e654042b14acb (diff) | |
reworking loader
Diffstat (limited to 'shim/shim.ld')
| -rw-r--r-- | shim/shim.ld | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/shim/shim.ld b/shim/shim.ld new file mode 100644 index 0000000..f0643ca --- /dev/null +++ b/shim/shim.ld @@ -0,0 +1,49 @@ +ENTRY(efi_shim_entry) + +SECTIONS +{ + . = sizeof_headers; + + .rel : + { + *(.rel.*) + } + + .rela : + { + *(.rela.*) + } + + .text : ALIGN(4K) + { + PROVIDE(_text_begin = .); + *(.text) + . = ALIGN(4K); + PROVIDE(_text_end = .); + } =0xcc + + .data : + { + PROVIDE(_data_begin = .); + *(.rodata) + *(.data) + } + + .data.rel : + { + *(.data.rel) + *(.data.rel.*) + } + + .bss : + { + *(.bss) + PROVIDE(_data_end = .); + } + + /DISCARD/ : + { + *(.eh_frame) + } +} + |
