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
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel