From 05709fe3f7470a72ac6db75071002af4b15734a5 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 15 Sep 2021 11:38:20 -0400 Subject: [PATCH] headers: Fix B_CURRENT_IMAGE_SYMBOL for GCC2. Apparently GCC2 does not like &__func__, so just drop the &. Fixes #17253. --- headers/os/kernel/image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/os/kernel/image.h b/headers/os/kernel/image.h index e7810ef428..c499aca037 100644 --- a/headers/os/kernel/image.h +++ b/headers/os/kernel/image.h @@ -73,7 +73,7 @@ void terminate_after(image_id self); #define B_APP_IMAGE_SYMBOL ((void*)(addr_t)0) /* value that can be used instead of a pointer to a symbol in the program image. */ -#define B_CURRENT_IMAGE_SYMBOL ((void*)&__func__) +#define B_CURRENT_IMAGE_SYMBOL ((void*)__func__) /* pointer to a symbol in the callers image */