blob: ef5a227f16b8d0dc59f932297690ad51843411ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff --git a/debian/patches/series b/debian/patches/series
index 0a1013d..91ddd35 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
20150515_ARM-thumb_compatibility.diff
+size_optimization.patch
diff --git a/debian/patches/size_optimization.patch b/debian/patches/size_optimization.patch
new file mode 100644
index 0000000..08d48e1
--- /dev/null
+++ b/debian/patches/size_optimization.patch
@@ -0,0 +1,12 @@
+--- a/configure
++++ b/configure
+@@ -379,6 +379,9 @@
+ tryflag CFLAGS_AUTO -fno-unwind-tables
+ tryflag CFLAGS_AUTO -fno-asynchronous-unwind-tables
+
++tryflag CFLAGS_AUTO -ffunction-sections
++tryflag CFLAGS_AUTO -fdata-sections
++
+ #
+ # The GNU toolchain defaults to assuming unmarked files need an
+ # executable stack, potentially exposing vulnerabilities in programs
|