Browse Source

Fixup the atexit weak alias for elf, need to include <features.h> to
get the correct value for the HAVE_ELF define.

David McCullough 23 years ago
parent
commit
8ccf39ef91
1 changed files with 5 additions and 1 deletions
  1. 5 1
      libc/sysdeps/linux/m68k/crt0.S

+ 5 - 1
libc/sysdeps/linux/m68k/crt0.S

@@ -21,6 +21,9 @@ Cambridge, MA 02139, USA.  */
  *	NOTE: this file works for PIC and non-PIC code.  Be very careful how
  *	you modify it !
  */
+
+#include <features.h>
+
 	.global	_start
 	.global __exit
 	.global atexit
@@ -50,8 +53,9 @@ __exit:
  */
 empty_func:
 	rts
-#if defined HAVE_ELF
+#if defined(HAVE_ELF)
 	.weak atexit
+	atexit = empty_func
 #else
 	.set atexit,empty_func
 #endif