sigcode() runs in user land context, so should not call mcount.
Without the symbol type on the exception entry functions, gprof
doesn't correctly identify the caller for exception entry symbols.
ok kettenis@
-/* $OpenBSD: exception.S,v 1.6 2018/06/22 16:08:12 drahn Exp $ */
+/* $OpenBSD: exception.S,v 1.7 2018/07/19 17:38:12 drahn Exp $ */
/*-
* Copyright (c) 2014 Andrew Turner
* All rights reserved.
.endm
.globl handle_el0_sync
+ .type handle_el0_sync,@function
handle_el0_sync:
save_registers 0
mov x0, sp
return
.globl handle_el0_irq
+ .type handle_el0_irq,@function
handle_el0_irq:
save_registers 0
bl _C_LABEL(vfp_save)
return
.globl handle_el0_error
+ .type handle_el0_error,@function
handle_el0_error:
save_registers 0
mov x0, sp
-/* $OpenBSD: locore.S,v 1.22 2018/01/28 13:17:45 kettenis Exp $ */
+/* $OpenBSD: locore.S,v 1.23 2018/07/19 17:38:12 drahn Exp $ */
/*-
* Copyright (c) 2012-2014 Andrew Turner
* All rights reserved.
initstack_end:
.text
-ENTRY(sigcode)
+ .globl _C_LABEL(sigcode)
+ .type _C_LABEL(sigcode),@function
+_C_LABEL(sigcode):
sub sp, sp, #17 * 32
mov x3, sp
stp q0, q1, [x3], #32