openmp-check-execstack.diff 1016 Bytes
Newer Older
Sylvestre Ledru's avatar
Sylvestre Ledru committed
1
Index: llvm-toolchain-snapshot_9~svn351647/openmp/runtime/tools/check-execstack.pl
2
===================================================================
Sylvestre Ledru's avatar
Sylvestre Ledru committed
3 4
--- llvm-toolchain-snapshot_9~svn351647.orig/openmp/runtime/tools/check-execstack.pl
+++ llvm-toolchain-snapshot_9~svn351647/openmp/runtime/tools/check-execstack.pl
5 6 7 8 9 10 11 12 13 14
@@ -46,7 +46,8 @@ sub execstack($) {
     #    GNU_STACK      0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4
     # Linux* OS Intel(R) 64:
     #    GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RWE 0x8
-    if ( $stack[ 0 ] !~ m{\A\s*(?:GNU_)?STACK(?:\s+0x[0-9a-f]+){5}\s+([R ][W ][E ])\s+0x[0-9a-f]+\s*\z} ) {
+#    if ( $stack[ 0 ] !~ m{\A\s*(?:GNU_)?STACK(?:\s+0x[0-9a-f]+){5}\s+([R ][W ][E ])\s+0x[0-9a-f]+\s*\z} ) {
+    if ( $stack[ 0 ] !~ m{\A\s*(?:GNU_)?STACK(?:\s+0x[0-9a-f]+){5}\s+([R ][W ][E ])\s+0(?:x[0-9a-f]+)*\s*\z} ) {
         runtime_error( "$file: Cannot parse stack segment line:", ">>> $stack[ 0 ]" );
     }; # if
     my $attrs = $1;