summarylogtreecommitdiffstats
path: root/0002-avbin-fix-link-and-add-full-relro.patch
diff options
context:
space:
mode:
authorDaniel Bermond2019-06-09 18:53:51 +0000
committerDaniel Bermond2019-06-09 19:09:38 +0000
commita52961f704a974522e1711f367218a2ea25da5b7 (patch)
treef528c5d3dfea43aef109bf5012b17211c6992fbc /0002-avbin-fix-link-and-add-full-relro.patch
downloadaur-avbin-git.tar.gz
Initial commit of avbin-git
Diffstat (limited to '0002-avbin-fix-link-and-add-full-relro.patch')
-rw-r--r--0002-avbin-fix-link-and-add-full-relro.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/0002-avbin-fix-link-and-add-full-relro.patch b/0002-avbin-fix-link-and-add-full-relro.patch
new file mode 100644
index 00000000000..735a88b4807
--- /dev/null
+++ b/0002-avbin-fix-link-and-add-full-relro.patch
@@ -0,0 +1,24 @@
+diff -Naurp a/linux-x86-32.Makefile b/linux-x86-32.Makefile
+--- a/linux-x86-32.Makefile 2019-04-28 20:32:41.000000000 +0000
++++ b/linux-x86-32.Makefile 2019-04-28 20:36:08.000000000 +0000
+@@ -2,7 +2,7 @@ SONAME=libavbin.so.$(AVBIN_VERSION)
+ LIBNAME=$(OUTDIR)/$(SONAME)
+
+ CFLAGS += -fPIC
+-LDFLAGS += -shared -soname $(SONAME) -zmuldefs
++LDFLAGS += -shared -soname $(SONAME) -zmuldefs -O1 --sort-common --as-needed -z relro -z now -O1 --sort-common --as-needed -z relro -z now
+
+ STATIC_LIBS = -whole-archive \
+ $(BACKEND_DIR)/libavformat/libavformat.a \
+diff -Naurp a/linux-x86-64.Makefile b/linux-x86-64.Makefile
+--- a/linux-x86-64.Makefile 2019-04-28 20:32:47.000000000 +0000
++++ b/linux-x86-64.Makefile 2019-04-28 20:36:08.000000000 +0000
+@@ -2,7 +2,7 @@ SONAME=libavbin.so.$(AVBIN_VERSION)
+ LIBNAME=$(OUTDIR)/$(SONAME)
+
+ CFLAGS += -fPIC
+-LDFLAGS += -shared -soname $(SONAME) -Bsymbolic -zmuldefs
++LDFLAGS += -shared -soname $(SONAME) -Bsymbolic -zmuldefs -O1 --sort-common --as-needed -z relro -z now -O1 --sort-common --as-needed -z relro -z now
+
+ STATIC_LIBS = -whole-archive \
+ $(BACKEND_DIR)/libavformat/libavformat.a \