diff options
author | Arvind Sankar <nivedita@alum.mit.edu> | 2020-04-16 18:12:26 +0300 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2020-04-24 15:52:16 +0300 |
commit | 26a92425f9a301fdeb5482e7891915ce43cc0556 (patch) | |
tree | c529548c0533b2f748a3f3fd72154f939be79df8 /arch/x86/boot | |
parent | 420b6d00ca94ce5b6578b1bc12e767ac7a0251ac (diff) | |
download | linux-26a92425f9a301fdeb5482e7891915ce43cc0556.tar.xz |
efi/x86: Remove __efistub_global and add relocation check
Instead of using __efistub_global to force variables into the .data
section, leave them in the .bss but pull the EFI stub's .bss section
into .data in the linker script for the compressed kernel.
Add relocation checking for x86 as well to catch non-PC-relative
relocations that require runtime processing, since the EFI stub does not
do any runtime relocation processing.
This will catch, for example, data relocations created by static
initializers of pointers.
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200416151227.3360778-3-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'arch/x86/boot')
-rw-r--r-- | arch/x86/boot/compressed/vmlinux.lds.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/boot/compressed/vmlinux.lds.S b/arch/x86/boot/compressed/vmlinux.lds.S index 508cfa6828c5..0dc5c2b9614b 100644 --- a/arch/x86/boot/compressed/vmlinux.lds.S +++ b/arch/x86/boot/compressed/vmlinux.lds.S @@ -52,6 +52,7 @@ SECTIONS _data = . ; *(.data) *(.data.*) + *(.bss.efistub) _edata = . ; } . = ALIGN(L1_CACHE_BYTES); |