commit 15eb1472395e85ebd589bc61915003b04149d16e
Author: Tom Callaway <spot(a)fedoraproject.org>
Date: Wed Oct 19 16:00:21 2016 -0400
fix memory issues with ld on i686
chromium-54.0.2840.59-i686-ld-memory-tricks.patch | 11 +++++++++++
chromium.spec | 3 +++
2 files changed, 14 insertions(+)
---
diff --git a/chromium-54.0.2840.59-i686-ld-memory-tricks.patch
b/chromium-54.0.2840.59-i686-ld-memory-tricks.patch
new file mode 100644
index 0000000..3af8c6b
--- /dev/null
+++ b/chromium-54.0.2840.59-i686-ld-memory-tricks.patch
@@ -0,0 +1,11 @@
+diff -up chromium-54.0.2840.59/build/toolchain/linux/BUILD.gn.ldmemory
chromium-54.0.2840.59/build/toolchain/linux/BUILD.gn
+--- chromium-54.0.2840.59/build/toolchain/linux/BUILD.gn.ldmemory 2016-10-19
15:56:20.253096784 -0400
++++ chromium-54.0.2840.59/build/toolchain/linux/BUILD.gn 2016-10-19 15:58:17.940833948
-0400
+@@ -72,6 +72,7 @@ gcc_toolchain("x86") {
+ ar = "ar"
+ ld = cxx
+ extra_cppflags = "-fno-delete-null-pointer-checks"
++ extra_ldflags = "--no-keep-memory --reduce-memory-overheads"
+
+ toolchain_args = {
+ current_cpu = "x86"
diff --git a/chromium.spec b/chromium.spec
index 10e0c30..c443d3f 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -150,6 +150,8 @@ Patch23: chromium-53.0.2785.101-crrev-415028.patch
Patch24: chromium-54.0.2840.59-nullfix.patch
# Add explicit includedir for jpeglib.h
Patch25: chromium-54.0.2840.59-jpeg-include-dir.patch
+# On i686, pass --no-keep-memory --reduce-memory-overheads to ld.
+Patch26: chromium-54.0.2840.59-i686-ld-memory-tricks.patch
### Chromium Tests Patches ###
@@ -527,6 +529,7 @@ members of the Chromium and WebDriver teams.
%patch23 -p1 -b .415208
%patch24 -p1 -b .nullfix
%patch25 -p1 -b .jpegfix
+%patch26 -p1 -b .ldmemory
### Chromium Tests Patches ###
%patch100 -p1 -b .use_system_opus