diff options
author | Adam Langley <agl@google.com> | 2015-03-06 11:08:23 -0800 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-03-06 12:15:23 -0800 |
commit | a4fb56a4374ac52a0b1c23e3654d4426c2e4adb3 (patch) | |
tree | fc5be1795f1cb25893d1dda8f9f581ed8430dece /src/crypto | |
parent | 73e611480396013cb4e059bb9e5ebb0db8e1ffce (diff) | |
download | external_boringssl-a4fb56a4374ac52a0b1c23e3654d4426c2e4adb3.zip external_boringssl-a4fb56a4374ac52a0b1c23e3654d4426c2e4adb3.tar.gz external_boringssl-a4fb56a4374ac52a0b1c23e3654d4426c2e4adb3.tar.bz2 |
Include .extern and .hidden in x86-64 asm.
This is backport of BoringSSL's d216b71f909fe56255813dab0a8d052534bdcb91
and https://boringssl-review.googlesource.com/3810 and should allow asm
on x86-64 to build correctly.
Change-Id: Id321768930182951223dbf90c4c910e24d9b6798
Diffstat (limited to 'src/crypto')
-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" . |