1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Tue Jun 11 23:23:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>

* Makerules (LDFLAGS-c.so): Use __libc_main instead of
	__libc_print_version as entry point for shared object.
	* version.c [HAVE_ELF] (__libc_main): New function.

	* elf/dl-load.c (_dl_map_object_from_fd): Relocate l_entry with the
	load address.
This commit is contained in:
Roland McGrath
1996-06-12 04:00:32 +00:00
parent 8d6468d0c8
commit 463e148b75
4 changed files with 26 additions and 1 deletions

View File

@ -36,6 +36,20 @@ This is free software; see the source for copying conditions.\n\
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n\
PARTICULAR PURPOSE.");
}
#ifdef HAVE_ELF
/* This function is the entry point for the shared object.
Running the library as a program will get here. */
#include <stdlib.h>
void
__libc_main (void)
{
__libc_print_version ();
exit (0);
}
#endif
/*
Local Variables: