@@ -975,6 +975,7 @@ sub handle_serialized_line {
$line =~ s/\.global/.globl/x;
# also catch .section .rodata since the equivalent to .const_data is .section __DATA,__const
$line =~ s/(.*)\.rodata/.const_data/x;
+ $line =~ s/(.*)\.data\.rel\.ro/.const_data/x;
$line =~ s/\.int/.long/x;
$line =~ s/\.float/.single/x;
}
@@ -991,6 +992,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=2, CODEALIGN/;
$line =~ s/(\s*)(.*)\.rodata/$1AREA |.rodata|, DATA, READONLY, ALIGN=5/;
+ $line =~ s/(\s*)(.*)\.data\.rel\.ro/$1AREA |.rodata|, DATA, READONLY, ALIGN=5/;
$line =~ s/fmxr/vmsr/;
$line =~ s/fmrx/vmrs/;