$OpenBSD: patch-gas_config_tc-i386_h,v 1.2 2002/03/11 00:37:13 fgsch Exp $
--- gas/config/tc-i386.h.orig	Wed May 23 00:41:10 2001
+++ gas/config/tc-i386.h	Sun Mar 10 20:27:09 2002
@@ -493,7 +493,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
