util: Add GNU non executable line to x86 m5 (#1116)

- Adding this line as not specifiying GNU non executable stack was
throwing warnings when building m5
for ubuntu 24.04

Change-Id: I620c508be4090804698391cff671ba5091b053d7
This commit is contained in:
Harshil Patel
2024-05-14 11:06:13 -07:00
committed by GitHub
parent b279e40cb7
commit 65976e4c6d
2 changed files with 12 additions and 0 deletions

View File

@@ -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

View File

@@ -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