Use -shared compilation instead of -Wl,-r
cover Use -shared compilation instead of -Wl,-r
-Wl,-r is a partial linking and this file is only intended as intermediate result for linker, not really intended for any other use. To make them usable we end up doing all the linker job twice over: in mkimage and in runtime. -shared on the other hand is meant to be loaded and relocated and hence it's simpler to use.
Tested on
i386-pc, x86_64-efi, powerpc-ieee1275, arm-efi, riscv64-efi, arm64-efi, sparc64-ieee1275, mipsel-loongson, mips-malta and loongarch64-efi using qemu
Tested on ia64-efi using ski
Tested on emu
Couldn't test on riscv32 as I couldn't find riscv32-efi for qemu, or any board for this matter.
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
ia32-efi build breaks with these patches, grub-mkimage seems to be missing relocation type 8
Quoted 15 lines · Vladimir Serbinenko
-Wl,-r is a partial linking and this file is only intended as intermediate result for linker, not really intended for any other use. To make them usable we end up doing all the linker job twice over: in mkimage and in runtime. -shared on the other hand is meant to be loaded and relocated and hence it's simpler to use.
Tested on
i386-pc, x86_64-efi, powerpc-ieee1275, arm-efi, riscv64-efi, arm64-efi, sparc64-ieee1275, mipsel-loongson, mips-malta and loongarch64-efi using qemuTested on ia64-efi using ski
Tested on emu
Quoted 8 lines
Couldn't test on riscv32 as I couldn't find riscv32-efi for qemu, or any board for this matter.
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Thanks. Fixed in the new version
Regards
Vladimir 'phcoder' Serbinenko
Quoted 30 lines · Mate Kukri
ia32-efi build breaks with these patches, grub-mkimage seems to be missing relocation type 8
Quoted 2 lines · Vladimir Serbinenko
-Wl,-r is a partial linking and this file is only intended as
intermediate
Quoted 13 lines
result for linker, not really intended for any other use. To make them usable we end up doing all the linker job twice over: in mkimage and in runtime. -shared on the other hand is meant to be loaded and relocated and hence it's simpler to use.
Tested on
i386-pc, x86_64-efi, powerpc-ieee1275, arm-efi, riscv64-efi, arm64-efi, sparc64-ieee1275, mipsel-loongson, mips-malta and loongarch64-efi using qemuTested on ia64-efi using ski
Tested on emuQuoted 8 lines
Couldn't test on riscv32 as I couldn't find riscv32-efi for qemu, or any board for this matter.
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 5 lines
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel