Ryan Gambord has submitted this change and it was merged. ( https://gem5-review.googlesource.com/c/public/gem5/+/17429 )

Change subject: util: Build m5 with -no-pie flag
......................................................................

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 <[email protected]>
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
---
M util/m5/Makefile.x86
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved
  Gabe Black: Looks good to me, but someone else must approve



diff --git a/util/m5/Makefile.x86 b/util/m5/Makefile.x86
index 89f8f92..c108ef6 100644
--- a/util/m5/Makefile.x86
+++ b/util/m5/Makefile.x86
@@ -51,7 +51,7 @@
        $(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 $<

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/17429
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I4b6df593936346b9d3e2fe29a5d85dde78b7cc5e
Gerrit-Change-Number: 17429
Gerrit-PatchSet: 2
Gerrit-Owner: Ryan Gambord <[email protected]>
Gerrit-Reviewer: Ciro Santilli <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Ryan Gambord <[email protected]>
Gerrit-CC: Daniel Carvalho <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to