Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:gmbr3:Active
gnu-efi
gnu-efi-bsc1182057-support-sbat-section.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnu-efi-bsc1182057-support-sbat-section.patch of Package gnu-efi
From 1161a5140f3f2adf2409e4440cb8a383ad5464ad Mon Sep 17 00:00:00 2001 From: Callum Farmer <gmbr3@opensuse.org> Date: Sun, 18 Jun 2023 13:24:26 +0100 Subject: [PATCH 4/4] sbat Signed-off-by: Callum Farmer <gmbr3@opensuse.org> --- gnuefi/crt0-efi-arm.S | 14 +++++++++++++- gnuefi/elf_arm_efi.lds | 10 ++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/gnuefi/crt0-efi-arm.S b/gnuefi/crt0-efi-arm.S index 9105dc8..7057f34 100644 --- a/gnuefi/crt0-efi-arm.S +++ b/gnuefi/crt0-efi-arm.S @@ -31,7 +31,7 @@ pe_header: .2byte 0 coff_header: .2byte 0x1c2 // Mixed ARM/Thumb - .2byte 4 // nr_sections + .2byte 5 // nr_sections .4byte 0 // TimeDateStamp .4byte 0 // PointerToSymbolTable .4byte 0 // NumberOfSymbols @@ -148,6 +148,18 @@ section_table: .2byte 0 // NumberOfLineNumbers .4byte 0x40000040 // Characteristics (section flags) + .ascii ".sbat\0\0\0" + .4byte _sbat_vsize - ImageBase // VirtualSize + .4byte _sbat - ImageBase // VirtualAddress + .4byte _sbat_size - ImageBase // SizeOfRawData + .4byte _sbat - ImageBase // PointerToRawData + .4byte 0 // PointerToRelocations + .4byte 0 // PointerToLineNumbers + .2byte 0 // NumberOfRelocations + .2byte 0 // NumberOfLineNumbers + .4byte 0x40000040 // Characteristics (section flags) + + .balign 256 .globl _start .type _start,%function diff --git a/gnuefi/elf_arm_efi.lds b/gnuefi/elf_arm_efi.lds index 4a93c88..619297d 100644 --- a/gnuefi/elf_arm_efi.lds +++ b/gnuefi/elf_arm_efi.lds @@ -112,6 +112,16 @@ SECTIONS } =0 _rodata_vsize = _evrodata - _rodata; _rodata_size = _erodata - _rodata; + _sbat = .; + .sbat : { + *(.sbat) + *(.sbat.*) + _evsbat = .; + . = ALIGN(4096); + _esbat = .; + } =0 + _sbat_vsize = _evsbat - _sbat; + _sbat_size = _esbat - _sbat; _image_end = .; _alldata_size = _image_end - _reloc; -- 2.31.1 From 1e74faa34fa6af92c588874a22e5f07d5ed811e7 Mon Sep 17 00:00:00 2001 From: Callum Farmer <gmbr3@opensuse.org> Date: Wed, 21 Jun 2023 10:01:54 +0100 Subject: [PATCH] riscv64 sbat Signed-off-by: Callum Farmer <gmbr3@opensuse.org> --- gnuefi/crt0-efi-riscv64.S | 13 ++++++++++++- gnuefi/elf_riscv64_efi.lds | 10 ++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/gnuefi/crt0-efi-riscv64.S b/gnuefi/crt0-efi-riscv64.S index 66b8b27..dac0f4d 100644 --- a/gnuefi/crt0-efi-riscv64.S +++ b/gnuefi/crt0-efi-riscv64.S @@ -35,7 +35,7 @@ pe_header: .2byte 0 coff_header: .2byte 0x5064 // riscv64 - .2byte 4 // nr_sections + .2byte 5 // nr_sections .4byte 0 // TimeDateStamp .4byte 0 // PointerToSymbolTable .4byte 0 // NumberOfSymbols @@ -150,6 +150,17 @@ section_table: .2byte 0 // NumberOfLineNumbers .4byte 0x40000040 // Characteristics (section flags) + .ascii ".sbat\0\0\0" + .4byte _sbat_vsize - ImageBase // VirtualSize + .4byte _sbat - ImageBase // VirtualAddress + .4byte _sbat_size - ImageBase // SizeOfRawData + .4byte _sbat - ImageBase // PointerToRawData + .4byte 0 // PointerToRelocations + .4byte 0 // PointerToLineNumbers + .2byte 0 // NumberOfRelocations + .2byte 0 // NumberOfLineNumbers + .4byte 0x40000040 // Characteristics (section flags) + .text .globl _start .type _start,%function diff --git a/gnuefi/elf_riscv64_efi.lds b/gnuefi/elf_riscv64_efi.lds index a29f600..3562d1f 100644 --- a/gnuefi/elf_riscv64_efi.lds +++ b/gnuefi/elf_riscv64_efi.lds @@ -115,6 +115,16 @@ SECTIONS } =0 _rodata_vsize = _evrodata - _rodata; _rodata_size = _erodata - _rodata; + _sbat = .; + .sbat : { + *(.sbat) + *(.sbat.*) + _evsbat = .; + . = ALIGN(4096); + _esbat = .; + } =0 + _sbat_vsize = _evsbat - _sbat; + _sbat_size = _esbat - _sbat; _image_end = .; _alldata_size = _image_end - _reloc; -- 2.31.1 From fb52c3207282f1b8b5ca2f445210bbd00ac8f42a Mon Sep 17 00:00:00 2001 From: Gary Lin <glin@suse.com> Date: Fri, 12 Mar 2021 15:35:08 +0800 Subject: [PATCH 1/2] Update linker scripts to add .sbat section Signed-off-by: Gary Lin <glin@suse.com> --- gnuefi/elf_aarch64_efi.lds | 9 +++++++++ gnuefi/elf_arm_efi.lds | 9 +++++++++ gnuefi/elf_x86_64_efi.lds | 10 ++++++++++ 3 files changed, 28 insertions(+) diff --git a/gnuefi/elf_aarch64_efi.lds b/gnuefi/elf_aarch64_efi.lds index 836d982..1ddec27 100644 --- a/gnuefi/elf_aarch64_efi.lds +++ b/gnuefi/elf_aarch64_efi.lds @@ -46,6 +46,15 @@ SECTIONS . = ALIGN(512); _edata = .; _data_size = _edata - _data; + . = ALIGN(4096); + .sbat : + { + _sbat = .; + *(.sbat) + *(.sbat.*) + } + _esbat = .; + _sbat_size = . - _sbat; . = ALIGN(4096); .dynsym : { *(.dynsym) } diff --git a/gnuefi/elf_x86_64_efi.lds b/gnuefi/elf_x86_64_efi.lds index 7be5902..fad1939 100644 --- a/gnuefi/elf_x86_64_efi.lds +++ b/gnuefi/elf_x86_64_efi.lds @@ -61,6 +61,16 @@ SECTIONS .rela.plt : { *(.rela.plt) } . = ALIGN(4096); .rodata : { *(.rodata*) } + . = ALIGN(4096); + .sbat : + { + _sbat = .; + *(.sbat) + *(.sbat.*) + } + _esbat = .; + _sbat_size = . - _sbat; + . = ALIGN(4096); .dynsym : { *(.dynsym) } . = ALIGN(4096); --- a/gnuefi/elf_ia32_efi.lds +++ b/gnuefi/elf_ia32_efi.lds @@ -72,6 +72,16 @@ SECTIONS KEEP (*(.reloc)) } . = ALIGN(4096); + .sbat : + { + _sbat = .; + *(.sbat) + *(.sbat.*) + } + _esbat = .; + _sbat_size = . - _sbat; + + . = ALIGN(4096); .dynsym : { *(.dynsym) } . = ALIGN(4096); .dynstr : { *(.dynstr) } -- 2.29.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor