diff --git a/util/m5/src/abi/x86/m5op.S b/util/m5/src/abi/x86/m5op.S index 9a425b6c26..4114e3aee7 100644 --- a/util/m5/src/abi/x86/m5op.S +++ b/util/m5/src/abi/x86/m5op.S @@ -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 diff --git a/util/m5/src/abi/x86/m5op_addr.S b/util/m5/src/abi/x86/m5op_addr.S index d6e6cf5315..98069eb584 100644 --- a/util/m5/src/abi/x86/m5op_addr.S +++ b/util/m5/src/abi/x86/m5op_addr.S @@ -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