>>> efitools: Building main/efitools 1.9.2-r10 (using abuild 3.13.0-r5) started Fri, 09 Aug 2024 14:11:24 +0000 >>> efitools: Checking sanity of /home/buildozer/aports/main/efitools/APKBUILD... >>> efitools: Analyzing dependencies... >>> efitools: Installing for build: build-base mount gnu-efi-dev<3.0.17 gnu-efi<3.0.17 openssl-dev>3 perl-file-slurp help2man sbsigntool (1/17) Installing libeconf (0.6.3-r0) (2/17) Installing libblkid (2.40.2-r0) (3/17) Installing libmount (2.40.2-r0) (4/17) Installing mount (2.40.2-r0) (5/17) Installing gnu-efi (3.0.15-r4) (6/17) Installing gnu-efi-dev (3.0.15-r4) (7/17) Installing openssl-dev (3.3.1-r3) (8/17) Installing libbz2 (1.0.8-r6) (9/17) Installing perl (5.40.0-r1) (10/17) Installing perl-file-slurp (9999.32-r3) (11/17) Installing help2man (1.49.3-r0) (12/17) Installing libuuid (2.40.2-r0) (13/17) Installing sbsigntool (0.9.5-r2) (14/17) Installing .makedepends-efitools (20240809.141125) (15/17) Installing perl-error (0.17029-r2) (16/17) Installing perl-git (2.46.0-r0) (17/17) Installing git-perl (2.46.0-r0) Executing busybox-1.36.1-r31.trigger OK: 454 MiB in 124 packages >>> efitools: Cleaning up srcdir >>> efitools: Cleaning up pkgdir >>> efitools: Cleaning up tmpdir >>> efitools: Fetching https://distfiles.alpinelinux.org/distfiles/edge/efitools-1.9.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 113k 100 113k 0 0 501k 0 --:--:-- --:--:-- --:--:-- 503k >>> efitools: Fetching https://distfiles.alpinelinux.org/distfiles/edge/efitools-1.9.2.tar.gz >>> efitools: Checking sha512sums... efitools-1.9.2.tar.gz: OK 001-datatypes.patch: OK 002-fix-parallel-make.patch: OK 003-fix-wchar_t.patch: OK 004-typo.patch: OK 005-riscv64.patch: OK >>> efitools: Unpacking /var/cache/distfiles/edge/efitools-1.9.2.tar.gz... >>> efitools: 001-datatypes.patch patching file lib/asn1/oid.h Hunk #1 succeeded at 10 (offset 2 lines). >>> efitools: 002-fix-parallel-make.patch patching file Make.rules >>> efitools: 003-fix-wchar_t.patch patching file cert-to-efi-hash-list.c patching file flash-var.c patching file hash-to-efi-sig-list.c patching file sign-efi-sig-list.c >>> efitools: 004-typo.patch patching file lib/console.c >>> efitools: 005-riscv64.patch patching file Make.rules make -C lib lib-efi.a make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c HelloWorld.c -o HelloWorld.o openssl req -new -x509 -newkey rsa:2048 -subj "/CN=DB/" -keyout DB.key -out DB.crt -days 3650 -nodes -sha256 gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c simple_file.c -o simple_file.efi.o openssl req -new -x509 -newkey rsa:2048 -subj "/CN=PK/" -keyout PK.key -out PK.crt -days 3650 -nodes -sha256 .......+....+++++++++++++++++++++++++++++++++++++++*.....+......+......+.....+..........+...+...+.....+....+...+...+++++++++++++++++++++++++++++++++++++++*..+..+...................+...+......+...........+...+.......+......+...+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c pecoff.c -o pecoff.efi.o ...........+......+...++++++ ...+.+.........+........+...+......+.+........+......+.+.....+.......+..+..........+...+...+..............+.+..+...+.......+.....................+.....+++++++++++++++++++++++++++++++++++++++*..+...+.+....................+.+.....+............+......+....+...........+.+...+..+++++++++++++++++++++++++++++++++++++++*..+..........+........+.........+.....................+...+.+......+...+..+...+...gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c cert-to-efi-sig-list.c -o cert-to-efi-sig-list.o ......+.+....++.......+...+..+..........+..+.......+.....+....................+............+.+.++++++++++++++++++.+...+..+++++++++++++++++++*...........+....+.+.+...+.+......+.........+.....+.+..+.......+..+.+..+....+++++++++++++++++++++.+..+++++++++++++++*..........++....+.....+.....+.............++...............+.....+....++...............+.+........................+..+.........+..+.+.........+......+...........++...+................+.+...........++........+...+..........+.................++.+....+......+.........+........+.........++......+...++...+++...++gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c guid.c -o guid.efi.o ...+ +....+...+........+make -C lib lib.a ..........+..+..........+..+.+...----- ...+........+.+.....................+........+.+......+...............+.....+.+........+....+........+...+.........+..........+.....+..........+cert-to-efi-sig-list.c:9:9: warning: "__STDC_VERSION__" redefined 9 | #define __STDC_VERSION__ 199901L | ^~~~~~~~~~~~~~~~ ...: note: this is the location of the previous definition .....+...+.+..............+......openssl req -new -x509 -newkey rsa:2048 -subj "/CN=KEK/" -keyout KEK.key -out KEK.crt -days 3650 -nodes -sha256 +....make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' +.....+.+.....+...+.......+......+..............+.+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c sha256.c -o sha256.efi.o .....+.............+....................+.+......+.................++++++ .......+..+...............+....+.....+......+.+..+...+....+.....+....+.....+....+.....+...+++++++++++++++++++++++++++++++++++++++*....+..+.......+.....+....+..+...+.+..............+.+...........+++++++++++++++++++++++++++++++++++++++*.+.....+..........+.....+......+.+........+.....................+.+............+...+.........+..............+....+...+.....+....+.......................+.+.....+..........++...+..+...+...+....+...+...+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c sign-efi-sig-list.c -o sign-efi-sig-list.o ...............+..+...............+.........+......+.+........+.......+...+..............+.+..+...+.............+...+.............+....+...........+..............+...+..+...+......+.........+.......++++++++++++.+...+++++++++++++++++++++++++++*......+..........+......+..........++.......+...+......+..+.......+........+.........+++++++.+...+.+.+++++++++++++++++++++++++++..+++*...........++...+..+...............+....................+....+......+......+......+..+....gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c console.c -o console.efi.o +...+..........+.....+..+...+...+.+..................+......+............gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c simple_file.c -o simple_file.o ......+.................+...+..........+....+......+.....+.....+.........+.+.+.........+.........+...+..+..+.........+...+...+......+...+....+....+......+...+.....+.....+.......+..........+..++..........+........++.......++.....+ +.+......+.....+....+...........+.+...+.....+....+.....+.......+----- .....+................+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c Loader.c -o Loader.o ..+...+.........+....+...............+.....+.+...+.....+.......+..gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c execute.c -o execute.efi.o ...+.+.....+...+..................sign-efi-sig-list.c:7:9: warning: "__STDC_VERSION__" redefined 7 | #define __STDC_VERSION__ 199901L | ^~~~~~~~~~~~~~~~ ...: note: this is the location of the previous definition +.+...+.............................gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c pecoff.c -o pecoff.o +.+..+...+.........+.......+...+...+...+.................+............+...+...++++make -C lib/asn1 libasn1-efi.a ++ ....+.+.....+...+.+....................+.+.....+.............+.....+....+...+..+..............................+......+.+.....+......+...+....+...+...+.....+............+....+.........+..+.......+........+...+++++++++++++++++++++++++++++++++++++++*....+....+..+....+......+........+...+.......+...+........+....+...+...+......+........+...+.........+.........+.+.....+.+.....+.......+...+++++++++++++++++++++++++++++++++++++++*..+...+..+......+......+.........+......+......+.......+...+...+.....+.........+.+..+............+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c configtable.c -o configtable.efi.o ...+....+......+..+.......+.....+...+.make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib/asn1' +gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c guid.c -o guid.o .....+.......+.....+....+...............+.....................+..+............+....+.....+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c ReadVars.c -o ReadVars.o ....+...+..+...+...+......+.+...+.....+............+............+..........+........+...+..........+.........+..+.....................+.......+...+...+...........+....+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c shell.c -o shell.efi.o .....+....+..+......+.......+........+...+....+...+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c sha256.c -o sha256.o .................+...+..........+...+......+.....+...+...............+......+.+...+...+..gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c UpdateVars.c -o UpdateVars.o +gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c asn1.c -o asn1.efi.o ......+............+...+.......+..+.+......+.........+..+....+..............+....+..+.+..............+...+.+.....+.+......+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c security_policy.c -o security_policy.efi.o ..+......+......+.+.................+...+.......+......+.....+gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c console.c -o console.o .+...+...........+.++++++ gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c asn1_parser.c -o asn1_parser.efi.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c KeyTool.c -o KeyTool.o ----- gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c shim_protocol.c -o shim_protocol.efi.o ReadVars.c: In function 'efi_main': ReadVars.c:177:73: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 177 | Print(L"Variable %s has no entries\n", variables[i]); | ^ ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ ReadVars.c:179:67: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 179 | Print(L"Failed to get %s: %d\n", variables[i], status); | ^ ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ ReadVars.c:184:61: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 184 | parse_db(data, len, image, variables[i], save_keys); | ^ ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ ReadVars.c:182:61: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 182 | parse_db(data, len, image, variables[i], save_keys); | ^ ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ ReadVars.c:181:68: warning: dangling pointer 'variables' to an unnamed temporary may be used [-Wdangling-pointer=] 181 | Print(L"Variable %s length %d\n", variables[i], len); | ^ ReadVars.c:112:41: note: unnamed temporary defined here 112 | variables = (CHAR16 *[]){ L"PK", L"KEK", L"db", L"dbx", L"dbt", L"MokList" , NULL}; | ^ gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c execute.c -o execute.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c HashTool.c -o HashTool.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c enumerator.c -o enumerator.efi.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c pkcs7verify.c -o pkcs7verify.efi.o UpdateVars.c: In function 'efi_main': UpdateVars.c:24:49: warning: variable 'owner_guid' set but not used [-Wunused-but-set-variable] 24 | CHAR16 **ARGV, *var, *name, *progname, *owner_guid; | ^~~~~~~~~~ gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c configtable.c -o configtable.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c SetNull.c -o SetNull.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c chunk.c -o chunk.efi.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c variables.c -o variables.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c shell.c -o shell.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c oid.c -o oid.efi.o asn1_parser.c: In function 'iterate': asn1_parser.c:82:15: warning: variable 'level' set but not used [-Wunused-but-set-variable] 82 | u_int level; | ^~~~~ gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c ShimReplace.c -o ShimReplace.o HashTool.c: In function 'efi_main': HashTool.c:187:25: warning: variable 'setup_mode_arg' set but not used [-Wunused-but-set-variable] 187 | setup_mode_arg = 0, keytool = NOSEL; | ^~~~~~~~~~~~~~ HashTool.c:185:28: warning: variable 'setup_mode' set but not used [-Wunused-but-set-variable] 185 | int c = 0, setup_mode = NOSEL, uefi_reboot = NOSEL, | ^~~~~~~~~~ gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c security_policy.c -o security_policy.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c identification.c -o identification.efi.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c hash-to-efi-sig-list.c -o hash-to-efi-sig-list.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c shim_protocol.c -o shim_protocol.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -fno-toplevel-reorder -DBUILD_EFI -c x509.c -o x509.efi.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c sig-list-to-certs.c -o sig-list-to-certs.o hash-to-efi-sig-list.c:7:9: warning: "__STDC_VERSION__" redefined 7 | #define __STDC_VERSION__ 199901L | ^~~~~~~~~~~~~~~~ : note: this is the location of the previous definition ShimReplace.c: In function 'efi_main': ShimReplace.c:51:37: warning: passing argument 2 of 'execute' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 51 | efi_status = execute(image, loader); | ^~~~~~ In file included from ShimReplace.c:17: /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/execute.h:5:35: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'const CHAR16 *' {aka 'const short unsigned int *'} 5 | execute(EFI_HANDLE image, CHAR16 *name); | ~~~~~~~~^~~~ ShimReplace.c:57:37: warning: passing argument 2 of 'execute' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 57 | efi_status = execute(image, fallback); | ^~~~~~~~ /home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/execute.h:5:35: note: expected 'CHAR16 *' {aka 'short unsigned int *'} but argument is of type 'const CHAR16 *' {aka 'const short unsigned int *'} 5 | execute(EFI_HANDLE image, CHAR16 *name); | ~~~~~~~~^~~~ gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c pkcs7verify.c -o pkcs7verify.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c efi-readvar.c -o efi-readvar.o sig-list-to-certs.c:7:9: warning: "__STDC_VERSION__" redefined 7 | #define __STDC_VERSION__ 199901L | ^~~~~~~~~~~~~~~~ : note: this is the location of the previous definition gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c kernel_efivars.c -o kernel_efivars.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c efi-updatevar.c -o efi-updatevar.o identification.c:33:24: warning: 'x501rdns' defined but not used [-Wunused-const-variable=] 33 | static const x501rdn_t x501rdns[] = { | ^~~~~~~~ gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c openssl_sign.c -o openssl_sign.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c cert-to-efi-hash-list.c -o cert-to-efi-hash-list.o gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c flash-var.c -o flash-var.o kernel_efivars.c:19:9: warning: "__STDC_VERSION__" redefined 19 | #define __STDC_VERSION__ 199901L | ^~~~~~~~~~~~~~~~ : note: this is the location of the previous definition > noPK.esl openssl req -new -x509 -newkey rsa:2048 -subj "/CN=DB1/" -keyout DB1.key -out DB1.crt -days 3650 -nodes -sha256 ar rcv libasn1-efi.a asn1.efi.o asn1_parser.efi.o enumerator.efi.o chunk.efi.o oid.efi.o identification.efi.o x509.efi.o openssl req -new -x509 -newkey rsa:2048 -subj "/CN=DB2/" -keyout DB2.key -out DB2.crt -days 3650 -nodes -sha256 flash-var.c:13:9: warning: "__STDC_VERSION__" redefined 13 | #define __STDC_VERSION__ 199901L | ^~~~~~~~~~~~~~~~ : note: this is the location of the previous definition ........+.....+.......+...+..............+...+......+....+.....+...+....+.....+...+.+......+.........+..+.........+++++++++++++a - asn1.efi.o ++++++++++++++++++++++++++*.a - asn1_parser.efi.o a - enumerator.efi.o a - chunk.efi.o a - oid.efi.o a - identification.efi.o a - x509.efi.o ....+.....+.+......+..+.+..+....+......+..+...+...+++++++++++++++++++++++++++++++++++++++*.........+make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib/asn1' ....+...+...+.......................+.+.....+.+...+...........+...+......+.+...+..+....+..............+.+......+..+....+...+............+.............+.......+...++.....+.......+.........+..+............+.+..+.......+..+......+.++.........+...+..+...+....+......++++++++++.++++++++++++++++++++++++++++..+..+*.................+......++..................+.+..+....+.....+...+++++++++..+...+.+++++++++++++++++++++++++++.+.+*........+........+.....+...+.+.+..+...+.+..+.....+...+.+.+.....+.....................+.............+......+.....++............++..........++................+..+.....................++.....++............+............+.....+.......+......+..........................++............+.............+......+...............+.....+....+.+.....................++...........++............++........++.+.....++..........++..+++ ....ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds SetNull.o -o SetNull.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/libgcc.a +...........+.+++++++++++++++++++++++++++...+++++++++++++*..+.......+.....+....+...+..+.+.....................+........+.......+++++++++++++++++++++..++++...+++++++++++++++*......+.......+.........+........................+...........+...+....+.....+...............++...............++............++........++.......+...+............++.......+.....+.....+.+...+...+.........++............++.....++.........++.....++.....++...................+..+...+...............+..+...+......+......+.............+....+.....+.....+.+.+...+...........+..+..................+..+.................+...+......+...+......+..# check we have no undefined symbols .......+..+...nm -D SetNull.so | grep ' U ' && exit 1 || exit 0 +......+...+.+.+...+...........+..................+...+..+....+...+..+..........++...............+.........+..............+.+.............++objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 SetNull.so SetNull.efi ........++......++......++................++.....++......++............++...........++.......++...................++........++............+...+............++...+...+..+.......+....+..+........+...+.+.......+...........+.+.....++............++......+............+...+.............+..+.....+....+.+.....+......+......+...+......+..+...+....sbsign --key DB.key --cert DB.crt --output SetNull-signed.efi SetNull.efi ..................++........+...+.+......+.....+.+..............+.......+...+...+..........+......+.............+.......+.......+...+...+......+.............++..............++................++..............++.....+..+...............+.+....+.....+..+.+.+.....+........+.+.......+........+............+................+..+...+...+.........+..........+..+...+............+..+.+............+..+.............+.......+............+.....+..+.......+warning: data remaining[3584 vs 3825]: gaps between PE/COFF sections? warning: data remaining[3584 vs 3832]: gaps between PE/COFF sections? .+...+.....+...+.....................+.+..+++.......++..++...+efi-updatevar.c:23:9: warning: "__STDC_VERSION__" redefined 23 | #define __STDC_VERSION__ 199901L | ^~~~~~~~~~~~~~~~ : note: this is the location of the previous definition + .+..+....+...+..+In file included from flash-var.c:7: In function 'memset', inlined from 'main' at flash-var.c:186:2: /usr/include/fortify/string.h:75:16: warning: '__builtin_memset' offset [0, 56] is out of the bounds [0, 0] [-Warray-bounds=] 75 | return __builtin_memset(__d, __c, __n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ....+.....+.........Signing Unsigned original image +.+...........+...+...............+----- ...+...+....+efi-readvar.c:20:9: warning: "__STDC_VERSION__" redefined 20 | #define __STDC_VERSION__ 199901L | ^~~~~~~~~~~~~~~~ : note: this is the location of the previous definition ...+.........+...+...+........+.......+........................+...+...+...+.....+......+....+..............+.......+.....+...+.....................+.......+.........+...+.....+..........+...+.....+....+...++++++ ...+++++++++++++++++++++++++++++++++++++++*..........+.....+...+..........+............+...+...+...........+...+..........+..+.............+..+.+...............+++++++++++++++++++++++++++++++++++++++*..........+openssl_sign.c: In function 'read_engine_private_key': openssl_sign.c:118:9: warning: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 118 | ENGINE_load_builtin_engines(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ...In file included from openssl_sign.c:10: /usr/include/openssl/engine.h:358:28: note: declared here 358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ openssl_sign.c:119:9: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 119 | e = ENGINE_by_id(engine); | ^ +/usr/include/openssl/engine.h:336:31: note: declared here 336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); | ^~~~~~~~~~~~ openssl_sign.c:135:9: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 135 | if (!ENGINE_init(e)) { | ^~ /usr/include/openssl/engine.h:620:27: note: declared here 620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); | ^~~~~~~~~~~ .openssl_sign.c:141:9: warning: 'ENGINE_load_private_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 141 | pkey = ENGINE_load_private_key(e, keyfile, ui, NULL); | ^~~~ ../usr/include/openssl/engine.h:638:11: note: declared here 638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~~ ....openssl_sign.c:142:9: warning: 'ENGINE_finish' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 142 | ENGINE_finish(e); | ^~~~~~~~~~~~~ /usr/include/openssl/engine.h:628:27: note: declared here 628 | OSSL_DEPRECATEDIN_3_0 int ENGINE_finish(ENGINE *e); | ^~~~~~~~~~~~~ +openssl_sign.c:145:9: warning: 'ENGINE_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 145 | ENGINE_free(e); | ^~~~~~~~~~~ /usr/include/openssl/engine.h:493:27: note: declared here 493 | OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e); | ^~~~~~~~~~~ .....+........................+.+............+..+.........+...............+......+....+..+....+.........+..+..................+....+......+...........+......+...+....+.....+......+....+..+.........+....+........+....+........+.+..+...+.......+...+.........+.....+.......+........+.+..+..........+..+...+.............+..............+.+..+...............+...+..........+.........+...+...+.....+......+....+...........+...+...+.......+..+................+.........+.....+..........+...+...+.........+........+......+......+...+......+.+...+..+.+............+........+...+....+..+....+......+.....................+...+.....+..........+......+........+......+.+.....+.............+......+..+.........+...............+...+...+.......++++++ ----- ar rcv lib-efi.a simple_file.efi.o pecoff.efi.o guid.efi.o sha256.efi.o console.efi.o execute.efi.o configtable.efi.o shell.efi.o security_policy.efi.o shim_protocol.efi.o pkcs7verify.efi.o variables.o a - simple_file.efi.o a - pecoff.efi.o a - guid.efi.o a - sha256.efi.o a - console.efi.o a - execute.efi.o a - configtable.efi.o a - shell.efi.o a - security_policy.efi.o a - shim_protocol.efi.o a - pkcs7verify.efi.o a - variables.o make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds HelloWorld.o lib/lib-efi.a -o HelloWorld.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/libgcc.a ar rcv lib.a simple_file.o pecoff.o guid.o sha256.o console.o execute.o configtable.o shell.o security_policy.o shim_protocol.o pkcs7verify.o kernel_efivars.o openssl_sign.o # check we have no undefined symbols nm -D HelloWorld.so | grep ' U ' && exit 1 || exit 0 a - simple_file.o a - pecoff.o a - guid.o a - sha256.o a - console.o a - execute.o a - configtable.o a - shell.o a - security_policy.o a - shim_protocol.o a - pkcs7verify.o a - kernel_efivars.o a - openssl_sign.o make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds Loader.o lib/lib-efi.a -o Loader.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/libgcc.a # check we have no undefined symbols nm -D Loader.so | grep ' U ' && exit 1 || exit 0 ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds ReadVars.o lib/lib-efi.a lib/asn1/libasn1-efi.a -o ReadVars.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/libgcc.a ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds UpdateVars.o lib/lib-efi.a -o UpdateVars.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/libgcc.a # check we have no undefined symbols nm -D ReadVars.so | grep ' U ' && exit 1 || exit 0 ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds KeyTool.o lib/lib-efi.a lib/asn1/libasn1-efi.a -o KeyTool.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/libgcc.a # check we have no undefined symbols nm -D UpdateVars.so | grep ' U ' && exit 1 || exit 0 # check we have no undefined symbols ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds HashTool.o lib/lib-efi.a -o HashTool.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/libgcc.a nm -D KeyTool.so | grep ' U ' && exit 1 || exit 0 # check we have no undefined symbols nm -D HashTool.so | grep ' U ' && exit 1 || exit 0 ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds ShimReplace.o lib/lib-efi.a -o ShimReplace.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/libgcc.a gcc -o hash-to-efi-sig-list hash-to-efi-sig-list.o lib/lib.a gcc -o sig-list-to-certs sig-list-to-certs.o lib/lib.a -lcrypto # check we have no undefined symbols nm -D ShimReplace.so | grep ' U ' && exit 1 || exit 0 gcc -o efi-readvar efi-readvar.o lib/lib.a -lcrypto gcc -o efi-updatevar efi-updatevar.o lib/lib.a -lcrypto gcc -o cert-to-efi-hash-list cert-to-efi-hash-list.o lib/lib.a -lcrypto gcc -o flash-var flash-var.o lib/lib.a help2man --no-info -i doc/hash-to-efi-sig-list.1.in -o doc/hash-to-efi-sig-list.1 ./hash-to-efi-sig-list help2man --no-info -i doc/sig-list-to-certs.1.in -o doc/sig-list-to-certs.1 ./sig-list-to-certs ./cert-to-efi-hash-list PK.crt PK-hash-blacklist.esl ./cert-to-efi-hash-list KEK.crt KEK-hash-blacklist.esl TimeOfRevocation is 0-0-0 00:00:00 ./cert-to-efi-hash-list DB.crt DB-hash-blacklist.esl TimeOfRevocation is 0-0-0 00:00:00 ./cert-to-efi-hash-list DB1.crt DB1-hash-blacklist.esl TimeOfRevocation is 0-0-0 00:00:00 ./cert-to-efi-hash-list DB2.crt DB2-hash-blacklist.esl TimeOfRevocation is 0-0-0 00:00:00 ./cert-to-efi-hash-list ms-uefi.crt ms-uefi-hash-blacklist.esl TimeOfRevocation is 0-0-0 00:00:00 ./cert-to-efi-hash-list ms-kek.crt ms-kek-hash-blacklist.esl TimeOfRevocation is 0-0-0 00:00:00 TimeOfRevocation is 0-0-0 00:00:00 objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 HelloWorld.so HelloWorld.efi gcc -o cert-to-efi-sig-list cert-to-efi-sig-list.o lib/lib.a -lcrypto gcc -o sign-efi-sig-list sign-efi-sig-list.o lib/lib.a -lcrypto objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 Loader.so Loader.efi objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 ReadVars.so ReadVars.efi objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 UpdateVars.so UpdateVars.efi objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 KeyTool.so KeyTool.efi objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 HashTool.so HashTool.efi objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 ShimReplace.so ShimReplace.efi ./hash-to-efi-sig-list HashTool.efi HashTool.hash help2man --no-info -i doc/cert-to-efi-hash-list.1.in -o doc/cert-to-efi-hash-list.1 ./cert-to-efi-hash-list HASH IS c488dc7b2c1397adaf602a7ada43a836da612362406d148ea746d28f76832879 help2man --no-info -i doc/cert-to-efi-sig-list.1.in -o doc/cert-to-efi-sig-list.1 ./cert-to-efi-sig-list help2man --no-info -i doc/efi-readvar.1.in -o doc/efi-readvar.1 ./efi-readvar help2man --no-info -i doc/efi-updatevar.1.in -o doc/efi-updatevar.1 ./efi-updatevar help2man --no-info -i doc/sign-efi-sig-list.1.in -o doc/sign-efi-sig-list.1 ./sign-efi-sig-list date: invalid date '1 second' ./sign-efi-sig-list -t "" -c PK.crt -k PK.key PK noPK.esl noPK.auth ./cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc DB1.crt DB1.esl Timestamp is 1900-1-0 00:00:00 Authentication Payload size 40 Signature of size 1148 Signature at: 40 ./cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc DB2.crt DB2.esl ./cert-to-efi-sig-list -g 77FA9ABD-0359-4D32-BD60-28F4E78F784B ms-uefi.crt ms-uefi.esl ./cert-to-efi-sig-list -g 77FA9ABD-0359-4D32-BD60-28F4E78F784B ms-kek.crt ms-kek.esl ./sign-efi-sig-list -a -c KEK.crt -k KEK.key db DB1.esl DB1-update.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 853 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key db DB2.esl DB2-update.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 853 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key db ms-uefi.esl ms-uefi-update.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 1640 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key db ms-kek.esl ms-kek-update.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 1600 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c PK.crt -k PK.key db DB1.esl DB1-pkupdate.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 853 Signature of size 1148 Signature at: 40 ./sign-efi-sig-list -a -c PK.crt -k PK.key db DB2.esl DB2-pkupdate.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 853 Signature of size 1148 Signature at: 40 ./sign-efi-sig-list -a -c PK.crt -k PK.key db ms-uefi.esl ms-uefi-pkupdate.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 1640 Signature of size 1148 Signature at: 40 ./sign-efi-sig-list -a -c PK.crt -k PK.key db ms-kek.esl ms-kek-pkupdate.auth ./cert-to-efi-sig-list PK.crt PK-blacklist.esl Timestamp is 0-0-0 00:00:00 Authentication Payload size 1600 Signature of size 1148 Signature at: 40 ./cert-to-efi-sig-list KEK.crt KEK-blacklist.esl ./cert-to-efi-sig-list DB.crt DB-blacklist.esl ./cert-to-efi-sig-list DB1.crt DB1-blacklist.esl ./cert-to-efi-sig-list DB2.crt DB2-blacklist.esl ./cert-to-efi-sig-list ms-uefi.crt ms-uefi-blacklist.esl ./cert-to-efi-sig-list ms-kek.crt ms-kek-blacklist.esl ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx PK-hash-blacklist.esl PK-hash-blacklist.auth ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx KEK-hash-blacklist.esl KEK-hash-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 134 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx DB-hash-blacklist.esl DB-hash-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 134 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx DB1-hash-blacklist.esl DB1-hash-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 134 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx DB2-hash-blacklist.esl DB2-hash-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 134 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx ms-uefi-hash-blacklist.esl ms-uefi-hash-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 134 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx ms-kek-hash-blacklist.esl ms-kek-hash-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 134 Signature of size 1151 Signature at: 40 sbsign --key DB.key --cert DB.crt --output HelloWorld-signed.efi HelloWorld.efi Timestamp is 0-0-0 00:00:00 Authentication Payload size 134 Signature of size 1151 Signature at: 40 ./cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc PK.crt PK.esl warning: data remaining[44544 vs 54056]: gaps between PE/COFF sections? Signing Unsigned original image ./cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc KEK.crt KEK.esl ./cert-to-efi-sig-list -g 11111111-2222-3333-4444-123456789abc DB.crt DB.esl sbsign --key DB.key --cert DB.crt --output Loader-signed.efi Loader.efi sbsign --key DB.key --cert DB.crt --output ReadVars-signed.efi ReadVars.efi warning: data remaining[85504 vs 97317]: gaps between PE/COFF sections? warning: data remaining[85504 vs 97320]: gaps between PE/COFF sections? Signing Unsigned original image sbsign --key DB.key --cert DB.crt --output UpdateVars-signed.efi UpdateVars.efi warning: data remaining[114688 vs 127472]: gaps between PE/COFF sections? Signing Unsigned original image sbsign --key DB.key --cert DB.crt --output KeyTool-signed.efi KeyTool.efi warning: data remaining[83968 vs 95791]: gaps between PE/COFF sections? warning: data remaining[83968 vs 95792]: gaps between PE/COFF sections? Signing Unsigned original image sbsign --key DB.key --cert DB.crt --output HashTool-signed.efi HashTool.efi warning: data remaining[124928 vs 138104]: gaps between PE/COFF sections? Signing Unsigned original image sbsign --key DB.key --cert DB.crt --output ShimReplace-signed.efi ShimReplace.efi warning: data remaining[86016 vs 97879]: gaps between PE/COFF sections? warning: data remaining[86016 vs 97880]: gaps between PE/COFF sections? Signing Unsigned original image cat HashTool.hash > /tmp/tmp.hash warning: data remaining[86528 vs 98792]: gaps between PE/COFF sections? Signing Unsigned original image ./xxdi.pl /tmp/tmp.hash > hashlist.h ./sign-efi-sig-list -c KEK.crt -k KEK.key db DB1.esl DB1.auth Timestamp is 2024-8-9 14:11:28 Authentication Payload size 853 Signature of size 1151 Signature at: 40 rm -f /tmp/tmp.hash ./sign-efi-sig-list -c KEK.crt -k KEK.key db DB2.esl DB2.auth Timestamp is 2024-8-9 14:11:28 Authentication Payload size 853 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -c KEK.crt -k KEK.key db ms-uefi.esl ms-uefi.auth Timestamp is 2024-8-9 14:11:28 Authentication Payload size 1640 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -c KEK.crt -k KEK.key db ms-kek.esl ms-kek.auth Timestamp is 2024-8-9 14:11:28 Authentication Payload size 1600 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c PK.crt -k PK.key PK PK.esl PK-update.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 851 Signature of size 1148 Signature at: 40 ./sign-efi-sig-list -a -c PK.crt -k PK.key KEK KEK.esl KEK-update.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 855 Signature of size 1148 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key db DB.esl DB-update.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 851 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c PK.crt -k PK.key PK PK.esl PK-pkupdate.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 851 Signature of size 1148 Signature at: 40 ./sign-efi-sig-list -a -c PK.crt -k PK.key KEK KEK.esl KEK-pkupdate.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 855 Signature of size 1148 Signature at: 40 ./sign-efi-sig-list -a -c PK.crt -k PK.key db DB.esl DB-pkupdate.auth ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx PK-blacklist.esl PK-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 851 Signature of size 1148 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx KEK-blacklist.esl KEK-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 853 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx DB-blacklist.esl DB-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 855 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx DB1-blacklist.esl DB1-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 853 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx DB2-blacklist.esl DB2-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 855 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx ms-uefi-blacklist.esl ms-uefi-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 855 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -a -c KEK.crt -k KEK.key dbx ms-kek-blacklist.esl ms-kek-blacklist.auth Timestamp is 0-0-0 00:00:00 Authentication Payload size 1642 Signature of size 1151 Signature at: 40 Timestamp is 0-0-0 00:00:00 Authentication Payload size 1602 Signature of size 1151 Signature at: 40 ./sign-efi-sig-list -c PK.crt -k PK.key PK PK.esl PK.auth Timestamp is 2024-8-9 14:11:28 Authentication Payload size 851 Signature of size 1148 Signature at: 40 ./sign-efi-sig-list -c PK.crt -k PK.key KEK KEK.esl KEK.auth Timestamp is 2024-8-9 14:11:28 Authentication Payload size 855 Signature of size 1148 Signature at: 40 ./sign-efi-sig-list -c KEK.crt -k KEK.key db DB.esl DB.auth Timestamp is 2024-8-9 14:11:28 gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c PreLoader.c -o PreLoader.o Authentication Payload size 851 Signature of size 1151 Signature at: 40 ./xxdi.pl PK.auth > PK.h ./xxdi.pl KEK.auth > KEK.h ./xxdi.pl DB.auth > DB.h gcc -I/home/buildozer/aports/main/efitools/src/efitools-1.9.2/include/ -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -Os -fstack-clash-protection -Wformat -Werror=format-security -fno-plt -Wno-pointer-sign -O2 -g -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -fno-stack-protector -ffreestanding -fno-stack-check -DGNU_EFI_USE_MS_ABI -DEFI_FUNCTION_WRAPPER -mno-red-zone -DCONFIG_x86_64 -c LockDown.c -o LockDown.o ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds PreLoader.o lib/lib-efi.a -o PreLoader.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/libgcc.a # check we have no undefined symbols nm -D PreLoader.so | grep ' U ' && exit 1 || exit 0 objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 PreLoader.so PreLoader.efi sbsign --key DB.key --cert DB.crt --output PreLoader-signed.efi PreLoader.efi warning: data remaining[87040 vs 99457]: gaps between PE/COFF sections? warning: data remaining[87040 vs 99464]: gaps between PE/COFF sections? Signing Unsigned original image ld -nostdlib -shared -Bsymbolic /usr/lib/crt0-efi-x86_64.o -L /usr/lib -L /usr/lib -L /usr/lib64 -T elf_x86_64_efi.lds LockDown.o lib/lib-efi.a -o LockDown.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/libgcc.a # check we have no undefined symbols nm -D LockDown.so | grep ' U ' && exit 1 || exit 0 objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym \ -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 LockDown.so LockDown.efi sbsign --key DB.key --cert DB.crt --output LockDown-signed.efi LockDown.efi warning: data remaining[46592 vs 56456]: gaps between PE/COFF sections? Signing Unsigned original image rm KEK-blacklist.esl SetNull.so KeyTool.o ms-kek.esl DB1.crt DB1.esl PK-hash-blacklist.esl ShimReplace.o ReadVars.o DB2-blacklist.esl ms-kek-blacklist.esl SetNull.o ms-uefi-hash-blacklist.esl HelloWorld.o ms-uefi-blacklist.esl UpdateVars.o KEK-hash-blacklist.esl DB-blacklist.esl HashTool.o DB1-hash-blacklist.esl ms-uefi.esl DB2.esl Loader.o DB2.crt ms-kek-hash-blacklist.esl PK-blacklist.esl DB2-hash-blacklist.esl DB-hash-blacklist.esl DB1-blacklist.esl >>> efitools: Entering fakeroot... make -C lib lib-efi.a make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' make -C lib lib.a make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' make -C lib/asn1 libasn1-efi.a make[1]: 'lib-efi.a' is up to date. make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' make[1]: Entering directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib/asn1' make[1]: 'lib.a' is up to date. make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib' make[1]: 'libasn1-efi.a' is up to date. make[1]: Leaving directory '/home/buildozer/aports/main/efitools/src/efitools-1.9.2/lib/asn1' install -m 755 -d /home/buildozer/aports/main/efitools/pkg/efitools/usr/share/man/man1 install -m 644 doc/cert-to-efi-hash-list.1 doc/cert-to-efi-sig-list.1 doc/efi-readvar.1 doc/efi-updatevar.1 doc/hash-to-efi-sig-list.1 doc/sig-list-to-certs.1 doc/sign-efi-sig-list.1 /home/buildozer/aports/main/efitools/pkg/efitools/usr/share/man/man1 install -m 755 -d /home/buildozer/aports/main/efitools/pkg/efitools/usr/share/efitools/efi install -m 755 HelloWorld.efi LockDown.efi Loader.efi ReadVars.efi UpdateVars.efi KeyTool.efi HashTool.efi SetNull.efi ShimReplace.efi PreLoader.efi /home/buildozer/aports/main/efitools/pkg/efitools/usr/share/efitools/efi install -m 755 -d /home/buildozer/aports/main/efitools/pkg/efitools/usr/bin install -m 755 cert-to-efi-sig-list sig-list-to-certs sign-efi-sig-list hash-to-efi-sig-list efi-readvar efi-updatevar cert-to-efi-hash-list flash-var /home/buildozer/aports/main/efitools/pkg/efitools/usr/bin install -m 755 mkusb.sh /home/buildozer/aports/main/efitools/pkg/efitools/usr/bin/efitool-mkusb install -m 755 -d /home/buildozer/aports/main/efitools/pkg/efitools/usr/share/efitools install -m 644 README COPYING /home/buildozer/aports/main/efitools/pkg/efitools/usr/share/efitools >>> efitools-doc*: Running split function doc... >>> efitools-doc*: Preparing subpackage efitools-doc... >>> efitools-doc*: Running postcheck for efitools-doc >>> efitools*: Running postcheck for efitools >>> efitools*: Preparing package efitools... >>> efitools*: Stripping binaries >>> efitools-doc*: Scanning shared objects >>> efitools*: Scanning shared objects >>> efitools-doc*: Tracing dependencies... >>> efitools-doc*: Package size: 48.0 KB >>> efitools-doc*: Compressing data... >>> efitools-doc*: Create checksum... >>> efitools-doc*: Create efitools-doc-1.9.2-r10.apk >>> efitools*: Tracing dependencies... mount so:libc.musl-x86_64.so.1 so:libcrypto.so.3 >>> efitools*: Package size: 1.1 MB >>> efitools*: Compressing data... >>> efitools*: Create checksum... >>> efitools*: Create efitools-1.9.2-r10.apk >>> efitools: Build complete at Fri, 09 Aug 2024 14:11:29 +0000 elapsed time 0h 0m 5s >>> efitools: Cleaning up srcdir >>> efitools: Cleaning up pkgdir >>> efitools: Uninstalling dependencies... (1/17) Purging .makedepends-efitools (20240809.141125) (2/17) Purging mount (2.40.2-r0) (3/17) Purging gnu-efi-dev (3.0.15-r4) (4/17) Purging gnu-efi (3.0.15-r4) (5/17) Purging openssl-dev (3.3.1-r3) (6/17) Purging perl-file-slurp (9999.32-r3) (7/17) Purging help2man (1.49.3-r0) (8/17) Purging sbsigntool (0.9.5-r2) (9/17) Purging git-perl (2.46.0-r0) (10/17) Purging perl-git (2.46.0-r0) (11/17) Purging perl-error (0.17029-r2) (12/17) Purging perl (5.40.0-r1) (13/17) Purging libbz2 (1.0.8-r6) (14/17) Purging libmount (2.40.2-r0) (15/17) Purging libuuid (2.40.2-r0) (16/17) Purging libblkid (2.40.2-r0) (17/17) Purging libeconf (0.6.3-r0) Executing busybox-1.36.1-r31.trigger OK: 408 MiB in 107 packages >>> efitools: Updating the main/x86_64 repository index... >>> efitools: Signing the index...