From 8ccf39ef91cb4dde804e6fecbe571513668a90ef Mon Sep 17 00:00:00 2001 From: David McCullough Date: Wed, 11 Jul 2001 13:27:12 +0000 Subject: Fixup the atexit weak alias for elf, need to include to get the correct value for the HAVE_ELF define. --- libc/sysdeps/linux/m68k/crt0.S | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libc') diff --git a/libc/sysdeps/linux/m68k/crt0.S b/libc/sysdeps/linux/m68k/crt0.S index 06b4b54f5..04aae1466 100644 --- a/libc/sysdeps/linux/m68k/crt0.S +++ b/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 + .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 -- cgit v1.2.3