summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-06-12 04:00:32 +0000
committerRoland McGrath <roland@gnu.org>1996-06-12 04:00:32 +0000
commit463e148b7581de66898a9675fc7dd5dfc88f8b0e (patch)
tree2d98d77cb503cd6aabd4bcd80a09da21924ae62e /Makerules
parent8d6468d0c8aa55b319ba70a83d3b092c292ef0b1 (diff)
downloadglibc-463e148b7581de66898a9675fc7dd5dfc88f8b0e.tar.gz
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.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index 5320ff4a9b..412b217184 100644
--- a/Makerules
+++ b/Makerules
@@ -491,7 +491,7 @@ endef
# since we define our own `.init' section specially.
LDFLAGS-c.so = -nostdlib -nostartfiles
# Give libc.so an entry point and make it directly runnable itself.
-LDFLAGS-c.so += -e __libc_print_version
+LDFLAGS-c.so += -e __libc_main
# Use our own special initializer and finalizer files for libc.so.
elfobjdir := $(firstword $(objdir) $(patsubst ../$(subdir),.,$(..)elf))
$(common-objpfx)libc.so: $(elfobjdir)/soinit.so \