diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-09-11 01:07:52 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-09-11 01:09:02 +0300 |
| commit | 7101970b3cdb2a0190e69a98352275907ab935a4 (patch) | |
| tree | 3081ce0e6fb986b340db7e1a18f0e6074cdd746e /arch/riscv64/conf/kernel-link.S | |
| parent | d9b427cab53849c503306af1ebebed30c35fb81f (diff) | |
| download | kmi-7101970b3cdb2a0190e69a98352275907ab935a4.tar.gz kmi-7101970b3cdb2a0190e69a98352275907ab935a4.zip | |
allow building with riscv64-linux-gnu
+ May warn about PHDR not being in LOAD, there is a flag to silence it
(--no-warn-rwx-segment) but it doesn't seem to exist in
riscv64-unknown-elf for some reason.
Diffstat (limited to 'arch/riscv64/conf/kernel-link.S')
| -rw-r--r-- | arch/riscv64/conf/kernel-link.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/riscv64/conf/kernel-link.S b/arch/riscv64/conf/kernel-link.S index 5673a64..2f000c9 100644 --- a/arch/riscv64/conf/kernel-link.S +++ b/arch/riscv64/conf/kernel-link.S @@ -26,4 +26,9 @@ SECTIONS { } __kernel_end = .; + + .garbage : { + *(.note*) + *(.riscv.attributes) + } } |
