X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=util%2Fincore;h=e6e6ecfd8928158a3a7ffda3daae51c5f104795a;hp=4adb7e0573e98269305620e635205d160a0db89e;hb=0bcb17a7776b7f740e855932890edfb7acfd7124;hpb=b7724f6f55b7859c7f3173146b85680862f6cd49 diff --git a/util/incore b/util/incore index 4adb7e0573..e6e6ecfd89 100755 --- a/util/incore +++ b/util/incore @@ -1,6 +1,6 @@ #!/usr/bin/env perl # -# Copyrifgr (c) 2011 The OpenSSL Project. +# Copyright (c) 2011 The OpenSSL Project. # # The script embeds fingerprint into ELF executable object, either # application binary or shared library. @@ -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,13 +378,14 @@ $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 = $exe->Lookup("FINGERPRINT_ascii_value") or die; -} elsif ($FIPS_text_startX && $FIPS_text_endX) { +} +if ($FIPS_text_startX && $FIPS_text_endX) { $FIPS_text_start = $FIPS_text_startX; $FIPS_text_end = $FIPS_text_endX; }