[libav-devel] [PATCH 1/3] Comment out gnu specific stack notes on apple and armasm

Martin Storsjo martin at martin.st
Mon Mar 17 09:56:47 CET 2014


Libav itself doesn't output these unless targeting ELF (where
they don't need to be commented out), but other projects (e.g.
OpenH264) have them unconditionally in the source.
---
 gas-preprocessor.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index 0ca0d07..922cac1 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -879,6 +879,7 @@ sub handle_serialized_line {
     $line =~ s/\.fpu/$comm$&/x         if $as_type =~ /^(apple-|armasm)/;
     $line =~ s/\.arch/$comm$&/x        if $as_type =~ /^(apple-|clang|armasm)/;
     $line =~ s/\.object_arch/$comm$&/x if $as_type =~ /^(apple-|armasm)/;
+    $line =~ s/.section\s+.note.GNU-stack.*/$comm$&/x if $as_type =~ /^(apple-|armasm)/;
 
     $line =~ s/\.syntax/$comm$&/x      if $as_type =~ /armasm/;
 
-- 
1.8.1.2



More information about the libav-devel mailing list