summaryrefslogtreecommitdiffstats
path: root/crypto/perlasm/x86gas.pl
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/perlasm/x86gas.pl')
-rw-r--r--crypto/perlasm/x86gas.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/perlasm/x86gas.pl b/crypto/perlasm/x86gas.pl
index 5347bf80a0..9969d382cf 100644
--- a/crypto/perlasm/x86gas.pl
+++ b/crypto/perlasm/x86gas.pl
@@ -124,7 +124,7 @@ sub ::function_begin_B
push(@out,".globl\t$func\n") if ($global);
if ($::coff)
- { push(@out,".def\t$func;\t.scl\t2;\t.type\t32;\t.endef\n"); }
+ { push(@out,".def\t$func;\t.scl\t".(3-$global).";\t.type\t32;\t.endef\n"); }
elsif (($::aout and !$::pic) or $::macosx)
{ }
else
@@ -258,4 +258,7 @@ ___
}
}
+sub ::dataseg
+{ push(@out,".data\n"); }
+
1;