diff options
author | David McCullough <davidm@snapgear.com> | 2001-07-11 13:27:12 +0000 |
---|---|---|
committer | David McCullough <davidm@snapgear.com> | 2001-07-11 13:27:12 +0000 |
commit | 8ccf39ef91cb4dde804e6fecbe571513668a90ef (patch) | |
tree | da8ff4bda25bfd05ee9530d1a9ab726541f077ae /libc/sysdeps | |
parent | bcbf416f712a2219d7d1ace67330d3dac0040587 (diff) |
Fixup the atexit weak alias for elf, need to include <features.h> to
get the correct value for the HAVE_ELF define.
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/m68k/crt0.S | 6 |
1 files changed, 5 insertions, 1 deletions
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 <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 |