]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[riscv] Split out runtime relocator to libprefix.S
authorMichael Brown <mcb30@ipxe.org>
Thu, 1 May 2025 13:04:27 +0000 (14:04 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 1 May 2025 13:36:26 +0000 (14:36 +0100)
commita4b5dd63c5a99df3cfa2c4dd3cd0fd9019635b92
tree920dae4fbb55e4d88961c73b908bdc0a93fef5e9
parent1534b0a6e9545d3a75ef6ca7cf0e4d89704582a2
[riscv] Split out runtime relocator to libprefix.S

Split out the runtime relocation logic from sbiprefix.S to a new
library libprefix.S.

Since this logically decouples the process of runtime relocation from
the _sbi_start symbol (currently used to determine the base address
for applying relocations), provide an alternative mechanism for the
relocator to determine the base address.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/riscv/prefix/libprefix.S [new file with mode: 0644]
src/arch/riscv/prefix/sbiprefix.S
src/arch/riscv/scripts/sbi.lds