mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
LibELF: Unbreak dynamic loader on riscv64
It turns out riscv64 indeed requires -fno-stack-protector for perform_relative_relocations, oopsie :^)
This commit is contained in:
1 parent
61cf20582c
commit
5963b785e7
1 file changed
+1
-2
@@ -10,9 +10,8 @@
|
||||
|
||||
namespace ELF {
|
||||
|
||||
bool perform_relative_relocations(FlatPtr base_address)
|
||||
[[gnu::no_stack_protector]] bool perform_relative_relocations(FlatPtr base_address)
|
||||
{
|
||||
|
||||
Elf_Ehdr* header = (Elf_Ehdr*)(base_address);
|
||||
Elf_Phdr* pheader = (Elf_Phdr*)(base_address + header->e_phoff);
|
||||
FlatPtr dynamic_section_addr = 0;
|
||||
|
||||
Reference in new issue
Block a user