On Tue, 23 Dec 2014, Martin Storsjo wrote:

This allows using alignment up to 16 bytes for e.g. tables within
the text section.
---
gas-preprocessor.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index 3020401..20e0ee9 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -989,7 +989,7 @@ sub handle_serialized_line {
        $line =~ s/\.thumb/THUMB/x;
        $line =~ s/\.arm/ARM/x;
        # The alignment in AREA is the power of two, just as .align in gas
-        $line =~ s/\.text/AREA |.text|, CODE, READONLY, ALIGN=2, CODEALIGN/;
+        $line =~ s/\.text/AREA |.text|, CODE, READONLY, ALIGN=4, CODEALIGN/;
        $line =~ s/(\s*)(.*)\.rodata/$1AREA |.rodata|, DATA, READONLY, ALIGN=5/;

        $line =~ s/fmxr/vmsr/;
--
1.8.1.2

OK'd by Janne on irc.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to