diff options
| author | Jan Kiszka <[email protected]> | 2024-01-12 18:37:29 +0000 |
|---|---|---|
| committer | Ard Biesheuvel <[email protected]> | 2024-01-23 13:31:32 +0000 |
| commit | afb2a4fb84555ef9e61061f6ea63ed7087b295d5 (patch) | |
| tree | 7298a39dd8dba6d23f78c9fe39873a4940d72dbd /drivers/firmware/efi/libstub/randomalloc.c | |
| parent | Linux 6.8-rc1 (diff) | |
| download | kernel-afb2a4fb84555ef9e61061f6ea63ed7087b295d5.tar.gz kernel-afb2a4fb84555ef9e61061f6ea63ed7087b295d5.zip | |
riscv/efistub: Ensure GP-relative addressing is not used
The cflags for the RISC-V efistub were missing -mno-relax, thus were
under the risk that the compiler could use GP-relative addressing. That
happened for _edata with binutils-2.41 and kernel 6.1, causing the
relocation to fail due to an invalid kernel_size in handle_kernel_image.
It was not yet observed with newer versions, but that may just be luck.
Cc: <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Diffstat (limited to 'drivers/firmware/efi/libstub/randomalloc.c')
0 files changed, 0 insertions, 0 deletions
