1 diff --git a/media/libvpx/build/make/ads2gas.pl b/media/libvpx/build/make/ads2gas.pl
2 --- a/media/libvpx/build/make/ads2gas.pl
3 +++ b/media/libvpx/build/make/ads2gas.pl
4 @@ -74,17 +74,20 @@ while (<STDIN>)
6 # Convert INCLUDE to .INCLUDE "file"
7 s/INCLUDE(\s*)(.*)$/.include $1\"$2\"/;
9 # Code directive (ARM vs Thumb)
10 s/CODE([0-9][0-9])/.code $1/;
13 - s/^\s*AREA.*$/.text/;
14 + # But ALIGNs in AREA must be obeyed
15 + s/^\s*AREA.*ALIGN=([0-9])$/.text\n.p2align $1/;
16 + # If no ALIGN, strip the AREA and align to 4 bytes
17 + s/^\s*AREA.*$/.text\n.p2align 2/;
20 # This one is for incoming symbols
21 s/DCD\s+\|(\w*)\|/.long $1/;
24 s/DCW\s+\|(\w*)\|/.short $1/;