ahs3 pushed to acpica-tools (f21). "iASL gets built in an odd way, so add changes to handle hardening (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 7 16:21:43 UTC 2015


>From f83196a266e882e7c4617d0953761c0399070ccd Mon Sep 17 00:00:00 2001
From: Al Stone <ahs3 at redhat.com>
Date: Mon, 6 Apr 2015 17:35:24 -0600
Subject: iASL gets built in an odd way, so add changes to handle hardening
 specifically for it

Signed-off-by: Al Stone <ahs3 at redhat.com>

diff --git a/f23-harden.patch b/f23-harden.patch
index 73e3432..0f834c9 100644
--- a/f23-harden.patch
+++ b/f23-harden.patch
@@ -10,3 +10,34 @@ diff -Naur acpica-unix2-20150204/generate/unix/Makefile.config acpica-unix2-2015
  CFLAGS += \
      -D$(HOST)\
      -D_GNU_SOURCE\
+diff -Naur acpica-unix2-20150204/generate/unix/iasl/Makefile acpica-unix2-20150204-new/generate/unix/iasl/Makefile
+--- acpica-unix2-20150204/generate/unix/iasl/Makefile	2015-02-04 14:12:17.000000000 -0700
++++ acpica-unix2-20150204-new/generate/unix/iasl/Makefile	2015-04-06 17:34:07.199134458 -0600
+@@ -301,20 +301,21 @@
+ # Cannot use the common compile warning flags since the C files are created
+ # by the utilities above and they are not necessarily ANSI C, etc.
+ #
++HARDENING_FLAGS = -fPIC -pie
+ $(OBJDIR)/aslcompilerlex.o :   $(OBJDIR)/aslcompilerlex.c
+-	$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
++	$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $<
+ 
+ $(OBJDIR)/aslcompilerparse.o : $(OBJDIR)/aslcompilerparse.c
+-	$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
++	$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $<
+ 
+ $(OBJDIR)/dtparserlex.o :      $(OBJDIR)/dtparserlex.c
+-	$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
++	$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $<
+ 
+ $(OBJDIR)/dtparserparse.o :    $(OBJDIR)/dtparserparse.c
+-	$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
++	$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $<
+ 
+ $(OBJDIR)/prparserlex.o :      $(OBJDIR)/prparserlex.c
+-	$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
++	$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $<
+ 
+ $(OBJDIR)/prparserparse.o :    $(OBJDIR)/prparserparse.c
+-	$(CC) -c $(CFLAGS) -Wall -Werror -o$@ $<
++	$(CC) -c $(CFLAGS) $(HARDENING_FLAGS) -Wall -Werror -o$@ $<
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/acpica-tools.git/commit/?h=f21&id=f83196a266e882e7c4617d0953761c0399070ccd


More information about the scm-commits mailing list