[packages/efilinux] Rel 2
arekm
arekm at pld-linux.org
Thu May 21 15:29:37 CEST 2026
commit e66dbc48ca7710e6edb0b7102bc12aed50d0b546
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 21 15:29:15 2026 +0200
Rel 2
efilinux-objcopy-pei.patch | 27 +++++++++++++++++++++++++++
efilinux.spec | 5 ++++-
2 files changed, 31 insertions(+), 1 deletion(-)
---
diff --git a/efilinux.spec b/efilinux.spec
index 56507be..d3de0ac 100644
--- a/efilinux.spec
+++ b/efilinux.spec
@@ -2,11 +2,12 @@ Summary: UEFI bootloader
Summary(pl.UTF-8): Bootloader UEFI
Name: efilinux
Version: 1.1
-Release: 1
+Release: 2
License: BSD
Group: Applications/System
Source0: https://www.kernel.org/pub/linux/utils/boot/efilinux/%{name}-%{version}.tar.xz
# Source0-md5: 2d3c46111cd661e65c912a7450cf40e3
+Patch0: %{name}-objcopy-pei.patch
BuildRequires: gnu-efi
BuildRequires: sed >= 4.0
BuildRequires: tar >= 1:1.22
@@ -17,6 +18,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# not supported by gnu-efi toolchain
%define _fortify_cflags %{nil}
%define _ssp_cflags %{nil}
+%define _enable_debug_packages 0
%description
efilinux is a UEFI OS loader. It was created as a reference
@@ -30,6 +32,7 @@ dobrze napisany kod źródłowy.
%prep
%setup -q
+%patch -P0 -p1
%{__sed} -i -e 's/^CFLAGS=/CFLAGS=$(OPTFLAGS) /' Makefile
# entry.c:457:6: error: 'cmdline' may be used uninitialized in this function [-Werror=uninitialized]
diff --git a/efilinux-objcopy-pei.patch b/efilinux-objcopy-pei.patch
new file mode 100644
index 0000000..de75371
--- /dev/null
+++ b/efilinux-objcopy-pei.patch
@@ -0,0 +1,27 @@
+--- efilinux-1.1/Makefile.orig 2014-02-26 00:00:00.000000000 +0100
++++ efilinux-1.1/Makefile 2026-05-21 00:00:00.000000000 +0100
+@@ -29,7 +29,7 @@
+
+ %.efi: %.so
+ $(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \
+- -j .rela -j .reloc -S --target=$(FORMAT) $*.so $@
++ -j .rela -j .reloc -S -I $(INFORMAT) -O $(FORMAT) $*.so $@
+
+ OBJCOPY=objcopy
+
+@@ -38,11 +38,13 @@
+
+ ifeq ($(ARCH),x86_64)
+ LIBDIR=/usr/lib64
+- FORMAT=efi-app-x86-64
++ INFORMAT=elf64-x86-64
++ FORMAT=pei-x86-64
+ else
+ ARCH=ia32
+ LIBDIR=/usr/lib
+- FORMAT=efi-app-$(ARCH)
++ INFORMAT=elf32-i386
++ FORMAT=pei-i386
+ endif
+
+ INCDIR := /usr/include
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/efilinux.git/commitdiff/e66dbc48ca7710e6edb0b7102bc12aed50d0b546
More information about the pld-cvs-commit
mailing list