diff mbox series

[FFmpeg-devel,GASPP] Handle a trailing flags field for .rodata, like '.section .rodata, "r"'

Message ID 20200923064042.19598-1-martin@martin.st
State New
Headers show
Series [FFmpeg-devel,GASPP] Handle a trailing flags field for .rodata, like '.section .rodata, "r"'
Related show

Checks

Context Check Description
andriy/default pending
andriy/configure warning Failed to apply patch

Commit Message

Martin Storsjö Sept. 23, 2020, 6:40 a.m. UTC
---
 gas-preprocessor.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index e51849b..bc36300 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -1204,7 +1204,7 @@  sub handle_serialized_line {
         $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=4, CODEALIGN/;
-        $line =~ s/(\s*)(.*)\.ro?data/$1AREA |.rdata|, DATA, READONLY, ALIGN=5/;
+        $line =~ s/(\s*)(.*)\.ro?data(\s*,\s*"\w+")?/$1AREA |.rdata|, DATA, READONLY, ALIGN=5/;
         $line =~ s/\.data/AREA |.data|, DATA, ALIGN=5/;
     }
     if ($as_type eq "armasm" and $arch eq "arm") {