$OpenBSD: patch-gas_config_tc-i386_h,v 1.1.1.1 2002/04/21 21:39:56 fgsch Exp $
--- gas/config/tc-i386.h.orig	Thu Nov 15 18:28:55 2001
+++ gas/config/tc-i386.h	Sat Apr  6 22:09:56 2002
@@ -497,7 +497,11 @@ arch_entry;
 /* The name of the global offset table generated by the compiler. Allow
    this to be overridden if need be.  */
 #ifndef GLOBAL_OFFSET_TABLE_NAME
+#ifdef OBJ_ELF
 #define GLOBAL_OFFSET_TABLE_NAME "_GLOBAL_OFFSET_TABLE_"
+#else
+#define GLOBAL_OFFSET_TABLE_NAME "__GLOBAL_OFFSET_TABLE_"
+#endif
 #endif
 
 #ifdef BFD_ASSEMBLER
