Skip to content

Commit

Permalink
Handle .data sections for armasm
Browse files Browse the repository at this point in the history
  • Loading branch information
mstorsjo committed Jun 15, 2015
1 parent 010baf6 commit 2d1c148
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gas-preprocessor.pl
Original file line number Diff line number Diff line change
Expand Up @@ -992,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=4, CODEALIGN/;
$line =~ s/(\s*)(.*)\.rodata/$1AREA |.rodata|, DATA, READONLY, ALIGN=5/;
$line =~ s/\.data/AREA |.data|, DATA, ALIGN=5/;

$line =~ s/fmxr/vmsr/;
$line =~ s/fmrx/vmrs/;
Expand Down

0 comments on commit 2d1c148

Please sign in to comment.