handle PIC compilation (if we are building a PIE system; this is used by tests)

This commit is contained in:
christos 2015-06-30 21:08:24 +00:00
parent 9a9013c60c
commit 5eab5ca5f2

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu_in_cksum.S,v 1.2 2013/06/22 05:56:32 uebayasi Exp $ */
/* $NetBSD: cpu_in_cksum.S,v 1.3 2015/06/30 21:08:24 christos Exp $ */
/*-
* Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
@ -285,9 +285,13 @@ ENTRY(cpu_in_cksum)
ret
.Mout_of_mbufs:
#ifdef __PIC__
leaq .Mout_of_mbufs_msg(%rip), %rdi
#else
movq $.Mout_of_mbufs_msg, %rdi
#endif
movl $0, %eax
call _C_LABEL(printf)
call PIC_PLT(_C_LABEL(printf))
jmp .Mreturn
END(cpu_in_cksum)