[FFmpeg-devel] [PATCH] Fix gas-preprocessor to translate .rdata sections for armasm and armasm64
Lukas Fellechner
lukas.fellechner at gmx.net
Tue Oct 1 21:37:37 EEST 2019
Compiling FFmpeg with gas-preprocessor.pl and armasm or armasm64 fails since FFmpeg 4.2.
New .rdata sections have been added in ARM NEON assembly code (e.g. libavutil/aarch64/asm.S).
This fix allows gas-preprocessor to translate those sections to armasm compatible code.
Gas-preprocessor is maintained in https://github.com/FFmpeg/gas-preprocessor
---
gas-preprocessor.pl | 1 +
1 file changed, 1 insertion(+)
diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index 743ce45..5d1d50d 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -1132,6 +1132,7 @@ sub handle_serialized_line {
# 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*)(.*)\.rodata/$1AREA |.rodata|, DATA, READONLY, ALIGN=5/;
+ $line =~ s/(\s*)(.*)\.rdata/$1AREA |.rdata|, DATA, READONLY, ALIGN=5/;
$line =~ s/\.data/AREA |.data|, DATA, ALIGN=5/;
}
if ($as_type eq "armasm" and $arch eq "arm") {
--
More information about the ffmpeg-devel
mailing list