[GASPP,1/2] Convert .extern into IMPORT for armasm

Message ID 1520515574-32567-1-git-send-email-martin@martin.st
State New
Headers show
Series
  • [GASPP,1/2] Convert .extern into IMPORT for armasm
Related show

Commit Message

Martin Storsjö March 8, 2018, 1:26 p.m.
---
 gas-preprocessor.pl | 1 +
 1 file changed, 1 insertion(+)

Comments

Janne Grunau March 14, 2018, 10:05 p.m. | #1
On 2018-03-08 15:26:13 +0200, Martin Storsjö wrote:
> ---
>  gas-preprocessor.pl | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
> index b0c909c..9a7f6d8 100755
> --- a/gas-preprocessor.pl
> +++ b/gas-preprocessor.pl
> @@ -1119,6 +1119,7 @@ sub handle_serialized_line {
>      }
>      if ($as_type eq "armasm") {
>          $line =~ s/\.global/EXPORT/x;
> +        $line =~ s/\.extern/IMPORT/x;
>          $line =~ s/\.int/dcd/x;
>          $line =~ s/\.long/dcd/x;
>          $line =~ s/\.float/dcfs/x;

ok

Janne

Patch

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index b0c909c..9a7f6d8 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -1119,6 +1119,7 @@  sub handle_serialized_line {
     }
     if ($as_type eq "armasm") {
         $line =~ s/\.global/EXPORT/x;
+        $line =~ s/\.extern/IMPORT/x;
         $line =~ s/\.int/dcd/x;
         $line =~ s/\.long/dcd/x;
         $line =~ s/\.float/dcfs/x;