Skip to content
forked from gem5/gem5

Commit

Permalink
util: Add GNU non executable line to x86 m5 (gem5#1116)
Browse files Browse the repository at this point in the history
- Adding this line as not specifiying GNU non executable stack was
throwing warnings when building m5
for ubuntu 24.04

Change-Id: I620c508be4090804698391cff671ba5091b053d7
  • Loading branch information
Harshil2107 authored and BobbyRBruce committed May 25, 2024
1 parent 363bf09 commit 43b28a2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions util/m5/src/abi/x86/m5op.S
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@
#define M5OP(name, func) m5op_func name, func;
M5OP_FOREACH
#undef M5OP

/* The line below is added to remove the warning
* saying that the file is not specifiying GNU non
* executable stack in ubuntu 24.04
*/
.section .note.GNU-stack
6 changes: 6 additions & 0 deletions util/m5/src/abi/x86/m5op_addr.S
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@
#define M5OP(name, func) m5op_func M5OP_MERGE_TOKENS(name, _addr), func;
M5OP_FOREACH
#undef M5OP

/* The line below is added to remove the warning
* saying that the file is not specifiying GNU non
* executable stack in ubuntu 24.04
*/
.section .note.GNU-stack

0 comments on commit 43b28a2

Please sign in to comment.