diff options
author | Andy Polyakov <appro@openssl.org> | 2011-11-06 23:22:58 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2011-11-06 23:22:58 +0000 |
commit | 6a0ea5d23971b437befc6d945c8042499571f9f7 (patch) | |
tree | 1b93632bf43823ca85c88889d22ab4e6a0b75187 /util | |
parent | 9a480169cde3a9f74f3143b80b36f245b936bb38 (diff) |
fipsld, incore: switch to new cross-compile support.
Diffstat (limited to 'util')
-rwxr-xr-x | util/incore | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/incore b/util/incore index 883f63ff56..e6e6ecfd89 100755 --- a/util/incore +++ b/util/incore @@ -34,6 +34,7 @@ @e_ident{magic,class,data,version,osabi,abiver,pad}= unpack("a4C*",$elf); + $!=42; # signal fipsld to revert to two-step link die "not ELF file" if ($e_ident{magic} ne chr(0177)."ELF"); my $elf_bits = $e_ident{class}*32; # 32 or 64 @@ -377,7 +378,7 @@ $FIPS_text_endX = $exe->Lookup("FIPS_text_endX"); if (!$legacy_mode) { if (!$FIPS_text_startX || !$FIPS_text_endX) { print STDERR "@ARGV[$#ARGV] is not cross-compiler aware.\n"; - exit(1); + exit(42); # signal fipsld to revert to two-step link } $FINGERPRINT_ascii_value |