diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/crypto/perlasm/x86_64-xlate.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/crypto/perlasm/x86_64-xlate.pl b/src/crypto/perlasm/x86_64-xlate.pl index ed545f2..8b46329 100755 --- a/src/crypto/perlasm/x86_64-xlate.pl +++ b/src/crypto/perlasm/x86_64-xlate.pl @@ -497,7 +497,11 @@ my %globals; $self->{value} = $dir . "\t" . $line; if ($dir =~ /\.extern/) { - $self->{value} = ""; # swallow extern + if ($flavour eq "elf") { + $self->{value} .= "\n.hidden $line"; + } else { + $self->{value} = ""; + } } elsif (!$elf && $dir =~ /\.type/) { $self->{value} = ""; $self->{value} = ".def\t" . ($globals{$1} or $1) . ";\t" . |