summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorRyan Gambord <gambordr@oregonstate.edu>2019-03-18 01:08:32 -0700
committerRyan Gambord <gambordr@oregonstate.edu>2019-03-19 00:13:50 +0000
commitf870912a00dfa6b1ef8139ed35f65ef886b198c6 (patch)
tree7d38ef203e46680518658d3c2ecc6464a9d4a9ee /util
parent2da37b5efa70c34aa3665c947b0ef10c4e2a3ae7 (diff)
downloadgem5-f870912a00dfa6b1ef8139ed35f65ef886b198c6.tar.xz
util: Build m5 with -no-pie flag
Added -no-pie flag to link /util/m5 to support newer versions of GCC that enable PIE by default. Tested for backwards compatibility with GCC 4.3, which, only warns for the unrecognized flag. Change-Id: I4b6df593936346b9d3e2fe29a5d85dde78b7cc5e Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17429 Reviewed-by: Gabe Black <gabeblack@google.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'util')
-rw-r--r--util/m5/Makefile.x862
1 files changed, 1 insertions, 1 deletions
diff --git a/util/m5/Makefile.x86 b/util/m5/Makefile.x86
index 89f8f9231..c108ef696 100644
--- a/util/m5/Makefile.x86
+++ b/util/m5/Makefile.x86
@@ -51,7 +51,7 @@ all: m5
$(CC) $(CFLAGS) -fPIC -o $@ -c $<
m5: $(OBJS)
- $(CC) -o $@ $(OBJS)
+ $(CC) -o $@ $(OBJS) -no-pie
m5op_x86.opic: m5op_x86.S
$(CC) $(CFLAGS) -DM5OP_PIC -fPIC -o $@ -c $<