arm just had to be different and change the syntax for .pushsection
authorderaadt <deraadt@openbsd.org>
Mon, 11 Dec 2023 03:05:15 +0000 (03:05 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 11 Dec 2023 03:05:15 +0000 (03:05 +0000)
arguments, so we have to cope.

lib/libc/arch/DEFS.h
libexec/ld.so/arm/SYS.h

index d9852ec..472b530 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: DEFS.h,v 1.2 2023/12/10 16:45:50 deraadt Exp $        */
+/*     $OpenBSD: DEFS.h,v 1.3 2023/12/11 03:05:15 deraadt Exp $        */
 /*
  * Copyright (c) 2015,2018,2021 Philip Guenther <guenther@openbsd.org>
  *
 /* ARM just had to be different... */
 #ifndef __arm__
 # define _FUNC_TYPE    @function
+# define _PROGBITS     @progbits
 #else
 # define _FUNC_TYPE    #function
+# define _PROGBITS     %progbits
 #endif
 
 /*
@@ -69,7 +71,7 @@
 #define _END(x)                .size x, . - x
 
 #define PINSYSCALL(sysno, label)                                       \
-       .pushsection .openbsd.syscalls,"",@progbits;                    \
+       .pushsection .openbsd.syscalls,"",_PROGBITS;                    \
        .long label;                                                    \
        .long sysno;                                                    \
        .popsection;
index 79f5975..faa5804 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: SYS.h,v 1.4 2023/12/10 16:45:50 deraadt Exp $ */
+/*     $OpenBSD: SYS.h,v 1.5 2023/12/11 03:05:17 deraadt Exp $ */
 
 /*
  * Copyright (c) 2004 Dale Rahn
@@ -30,7 +30,7 @@
 #include <sys/syscall.h>
 
 #define PINSYSCALL(sysno, label)                               \
-       .pushsection .openbsd.syscalls,"",@progbits             ;\
+       .pushsection .openbsd.syscalls,"",%progbits             ;\
        .long label                                             ;\
        .long sysno                                             ;\
        .popsection