2019-11-05 21:28:15 +00:00
|
|
|
From 88089080e1abf37f782221869e46bee15399339b Mon Sep 17 00:00:00 2001
|
2019-05-07 13:44:43 +00:00
|
|
|
From: Honggang Li <honli@redhat.com>
|
2019-11-05 21:28:15 +00:00
|
|
|
Date: Tue, 11 Jun 2019 09:20:52 -0400
|
2019-05-07 13:44:43 +00:00
|
|
|
Subject: [PATCH 1/3] Link executables with '-pie'
|
|
|
|
|
|
|
|
Signed-off-by: Honggang Li <honli@redhat.com>
|
|
|
|
---
|
|
|
|
Esm/ib/src/linux/startup/fm_config/Makefile | 4 ++--
|
|
|
|
Makerules/Maketargets.build | 2 +-
|
|
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/Esm/ib/src/linux/startup/fm_config/Makefile b/Esm/ib/src/linux/startup/fm_config/Makefile
|
2019-11-05 21:28:15 +00:00
|
|
|
index c4108fa..cd3f301 100644
|
2019-05-07 13:44:43 +00:00
|
|
|
--- a/Esm/ib/src/linux/startup/fm_config/Makefile
|
|
|
|
+++ b/Esm/ib/src/linux/startup/fm_config/Makefile
|
|
|
|
@@ -150,10 +150,10 @@ include $(TL_DIR)/Makerules/Maketargets.build
|
|
|
|
include $(TL_DIR)/Makerules/Maketargets.install
|
|
|
|
|
|
|
|
$(BUILDDIR)/config_check: $(BUILDDIR)/config_check.o
|
|
|
|
- $(VS)$(CC) $(LDFLAGS)$@ $(BUILDDIR)/config_check.o $(LDLIBS)
|
|
|
|
+ $(VS)$(CC) -pie $(LDFLAGS)$@ $(BUILDDIR)/config_check.o $(LDLIBS)
|
|
|
|
|
|
|
|
$(BUILDDIR)/config_convert: $(BUILDDIR)/config_convert.o
|
|
|
|
- $(VS)$(CC) $(LDFLAGS)$@ $(BUILDDIR)/config_convert.o $(LDLIBS)
|
|
|
|
+ $(VS)$(CC) -pie $(LDFLAGS)$@ $(BUILDDIR)/config_convert.o $(LDLIBS)
|
|
|
|
|
|
|
|
# install for stage phase
|
|
|
|
#include $(TL_DIR)/Makerules/Maketargets.stage
|
|
|
|
diff --git a/Makerules/Maketargets.build b/Makerules/Maketargets.build
|
|
|
|
index ebf9fdf..9cd7844 100755
|
|
|
|
--- a/Makerules/Maketargets.build
|
|
|
|
+++ b/Makerules/Maketargets.build
|
|
|
|
@@ -127,7 +127,7 @@ else # BUILD_TARGET_OS is not VXWORKS
|
|
|
|
$(CMD_TARGETS_EXE) : $(CT_OBJECTS) $(RSCOBJECTS) $(DEPLIBS_TARGETS)
|
|
|
|
@echo Linking executable...
|
|
|
|
@mkdir -p $(dir $@)
|
|
|
|
- $(VS)$(CC) $(LDFLAGS)$@ $(CT_OBJECTS) $(LDLIBS)
|
|
|
|
+ $(VS)$(CC) -pie $(LDFLAGS)$@ $(CT_OBJECTS) $(LDLIBS)
|
|
|
|
endif # BUILD_TARGET_OS is VXWORKS
|
|
|
|
endif # CMD_TARGETS_EXE non-null
|
|
|
|
|
|
|
|
--
|
2019-11-05 21:28:15 +00:00
|
|
|
2.20.1
|
2019-05-07 13:44:43 +00:00
|
|
|
|