x86_64: Replace .asciz "GNU" with .byte
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 26 Feb 2020 03:04:41 +0000 (13:04 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Wed, 26 Feb 2020 03:04:41 +0000 (13:04 +1000)
Replace .asciz "GNU" with .byte since .asciz isn't supported on Solaris.
Fixes https://github.com/openssl/openssl/issues/11132

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11137)

crypto/perlasm/x86_64-xlate.pl

index aff165c5fa88649cc353b08a8c5de81f35a23ab0..f87f1a5b9605813ef45a30b8099a7a656730dc39 100755 (executable)
@@ -115,7 +115,12 @@ if ($flavour =~ /elf/) {
        .long 4f - 1f
        .long 5
 0:
-       .asciz "GNU"
+       # "GNU" encoded with .byte, since .asciz isn't supported
+       # on Solaris.
+       .byte 0x47
+       .byte 0x4e
+       .byte 0x55
+       .byte 0
 1:
        .p2align $p2align
        .long 0xc0000002