1 |
commit: 349e168da5d78c75bd210ff893a7b580dfe5b4fe |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 30 22:05:41 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 30 22:05:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=349e168d |
7 |
|
8 |
sys-firmware/seabios: tweak linker script for binutils-2.36 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
sys-firmware/seabios/files/seabios-1.14.0-binutils-2.36.patch | 9 +++++++++ |
14 |
sys-firmware/seabios/seabios-1.14.0-r1.ebuild | 4 ++++ |
15 |
2 files changed, 13 insertions(+) |
16 |
|
17 |
diff --git a/sys-firmware/seabios/files/seabios-1.14.0-binutils-2.36.patch b/sys-firmware/seabios/files/seabios-1.14.0-binutils-2.36.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..0453d203d4a |
20 |
--- /dev/null |
21 |
+++ b/sys-firmware/seabios/files/seabios-1.14.0-binutils-2.36.patch |
22 |
@@ -0,0 +1,9 @@ |
23 |
+--- a/vgasrc/vgalayout.lds.S |
24 |
++++ b/vgasrc/vgalayout.lds.S |
25 |
+@@ -19,5 +19,5 @@ SECTIONS |
26 |
+ |
27 |
+ // Discard regular data sections to force a link error if |
28 |
+ // 16bit code attempts to access data not marked with VAR16. |
29 |
+- /DISCARD/ : { *(.text*) *(.rodata*) *(.data*) *(.bss*) *(COMMON) } |
30 |
++ /DISCARD/ : { *(.text*) *(.rodata*) *(.data*) *(.bss*) *(COMMON) *(.note.gnu.property) } |
31 |
+ } |
32 |
|
33 |
diff --git a/sys-firmware/seabios/seabios-1.14.0-r1.ebuild b/sys-firmware/seabios/seabios-1.14.0-r1.ebuild |
34 |
index a8b5184144a..f97b51857b5 100644 |
35 |
--- a/sys-firmware/seabios/seabios-1.14.0-r1.ebuild |
36 |
+++ b/sys-firmware/seabios/seabios-1.14.0-r1.ebuild |
37 |
@@ -95,6 +95,10 @@ src_unpack() { |
38 |
src_prepare() { |
39 |
default |
40 |
|
41 |
+ if ! use binary; then |
42 |
+ eapply "${FILESDIR}"/${PN}-1.14.0-binutils-2.36.patch |
43 |
+ fi |
44 |
+ |
45 |
# Ensure precompiled iasl files are never used |
46 |
find "${WORKDIR}" -name '*.hex' -delete || die |
47 |
} |