From da7acc414ed5d568bf8b01a3b20d9c387c86d791 Mon Sep 17 00:00:00 2001 From: miod Date: Fri, 3 Feb 2023 06:13:08 +0000 Subject: [PATCH] Remove a bunch of pic-related macros which were supposed to mimic similar x86 macros but have never been implemented and never been used either. --- sys/arch/powerpc/include/asm.h | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/sys/arch/powerpc/include/asm.h b/sys/arch/powerpc/include/asm.h index 07e7599c3ed..1fd8831bf70 100644 --- a/sys/arch/powerpc/include/asm.h +++ b/sys/arch/powerpc/include/asm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asm.h,v 1.18 2022/12/08 01:25:45 guenther Exp $ */ +/* $OpenBSD: asm.h,v 1.19 2023/02/03 06:13:08 miod Exp $ */ /* $NetBSD: asm.h,v 1.1 1996/09/30 16:34:20 ws Exp $ */ /* @@ -35,32 +35,7 @@ #ifndef _POWERPC_ASM_H_ #define _POWERPC_ASM_H_ -/* XXX */ -#define TARGET_ELF - -#ifdef __PIC__ -#define PIC_PROLOGUE XXX -#define PIC_EPILOGUE XXX -#ifdef __STDC__ -#define PIC_PLT(x) x ## @plt -#define PIC_GOT(x) XXX -#define PIC_GOTOFF(x) XXX -#else /* not __STDC__ */ -#define PIC_PLT(x) x/**/@plt -#define PIC_GOT(x) XXX -#define PIC_GOTOFF(x) XXX -#endif /* __STDC__ */ -#else -#define PIC_PROLOGUE -#define PIC_EPILOGUE -#define PIC_PLT(x) x -#define PIC_GOT(x) x -#define PIC_GOTOFF(x) x -#endif - -#ifdef TARGET_ELF -# define _C_LABEL(x) x -#endif +#define _C_LABEL(x) x #define _ASM_LABEL(x) x #ifdef __STDC__ -- 2.20.1