patch-2.0.12 linux/include/asm-alpha/elf.h
Next file: linux/include/asm-m68k/elf.h
Previous file: linux/fs/super.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Fri Aug 9 10:44:54 1996
- Orig file:
v2.0.11/linux/include/asm-alpha/elf.h
- Orig date:
Mon Aug 5 10:13:54 1996
diff -u --recursive --new-file v2.0.11/linux/include/asm-alpha/elf.h linux/include/asm-alpha/elf.h
@@ -38,4 +38,15 @@
memcpy((char *) &_dest, (char *) &_dump.regs, \
sizeof(elf_gregset_t)); }
+/* $0 is set by ld.so to a pointer to a function which might be
+ registered using atexit. This provides a mean for the dynamic
+ linker to call DT_FINI functions for shared libraries that have
+ been loaded before the code runs.
+
+ So that we can use the same startup file with static executables,
+ we start programs with a value of 0 to indicate that there is no
+ such function. */
+
+#define ELF_PLAT_INIT(_r) _r->r0 = 0
+
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov