1 diff --git a/media/libtheora/lib/arm/arm2gnu.pl b/media/libtheora/lib/arm/arm2gnu.pl
2 --- a/media/libtheora/lib/arm/arm2gnu.pl
3 +++ b/media/libtheora/lib/arm/arm2gnu.pl
7 my $bigend; # little/big endian
12 eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'
13 if $running_under_some_shell;
15 while ($ARGV[0] =~ /^-/) {
19 @@ -77,16 +80,19 @@ while (<>) {
25 # ".rdata" doesn't work in 'as' version 2.13.2, as it is ".rodata" there.
31 s/^(.+)CODE(.+)READONLY(.*)/ .text/;
32 s/^(.+)DATA(.+)READONLY(.*)/ .section .rdata\n .align 2/;
33 s/^(.+)\|\|\.data\|\|(.+)/ .data\n .align 2/;
34 s/^(.+)\|\|\.bss\|\|(.+)/ .bss/;
37 s/\|\|\.constdata\$(\d+)\|\|/.L_CONST$1/; # ||.constdata$3||
38 s/\|\|\.bss\$(\d+)\|\|/.L_BSS$1/; # ||.bss$2||
39 @@ -263,9 +269,13 @@ while (<>) {
41 printf ("%s", $_) if $printit;
44 printf (" mov r0,r0\n");
49 +#If we had a code section, mark that this object doesn't need an executable
52 + printf (" .section\t.note.GNU-stack,\"\",\%\%progbits\n");