2004-01-10 20:02:46 -05:00
|
|
|
$OpenBSD: patch-src_runtime_include_asm-base_h,v 1.4 2004/01/11 01:02:46 espie Exp $
|
2003-08-21 16:59:11 -04:00
|
|
|
--- src/runtime/include/asm-base.h.orig 1999-12-03 20:59:31.000000000 +0100
|
2004-01-10 20:02:46 -05:00
|
|
|
+++ src/runtime/include/asm-base.h 2004-01-11 01:58:50.000000000 +0100
|
2002-06-29 09:25:10 -04:00
|
|
|
@@ -16,7 +16,7 @@
|
|
|
|
#define FALSE 0
|
|
|
|
#define TRUE 1
|
|
|
|
|
|
|
|
-#if (!defined(GLOBALS_HAVE_UNDERSCORE)) && (defined(OPSYS_SUNOS) || defined(OPSYS_NEXTSTEP) || defined(OPSYS_WIN32))
|
2003-08-21 16:59:11 -04:00
|
|
|
+#if (!defined(GLOBALS_HAVE_UNDERSCORE)) && (defined(OPSYS_SUNOS) || defined(OPSYS_NEXTSTEP) || defined(OPSYS_WIN32)) || (defined(OPSYS_OPENBSD) && !defined(__ELF__))
|
2002-06-29 09:25:10 -04:00
|
|
|
# define GLOBALS_HAVE_UNDERSCORE
|
|
|
|
#endif
|
|
|
|
|
2004-01-10 20:02:46 -05:00
|
|
|
@@ -122,8 +122,12 @@
|
2004-01-04 12:27:56 -05:00
|
|
|
# define WORD(W) WORD32(W)
|
|
|
|
# else
|
|
|
|
# define GLOBAL(ID) .globl CSYM(ID)
|
|
|
|
-# define LABEL(ID) CONCAT(ID,:)
|
|
|
|
-# define IMMED(ID) CONCAT($,ID)
|
|
|
|
+# define LABEL(ID) ID:
|
2004-01-10 20:02:46 -05:00
|
|
|
+# if defined(__GNUC__) && __GNUC__ <= 2
|
|
|
|
+# define IMMED(ID) CONCAT($, ID)
|
|
|
|
+# else
|
|
|
|
+# define IMMED(ID) $ID
|
|
|
|
+# endif
|
2004-01-04 12:27:56 -05:00
|
|
|
# define ALIGN4 .align 2
|
|
|
|
# define WORD(W) .word W
|
|
|
|
# define TEXT .text
|