about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index 6c01013e8d..0e67398dad 100644
--- a/Makerules
+++ b/Makerules
@@ -350,6 +350,8 @@ lib%.so: lib%_pic.a
 # Also omits crti.o and crtn.o, which we do not want
 # since we define our own `.init' section specially.
 LDFLAGS-c.so = -nostdlib
+# Give libc.so an entry point and make it directly runnable itself.
+LDFLAGS-c.so += -Wl,-interp -Wl,/lib/ld.so -e __libc_print_version
 endif
 
 libobjs: $(foreach o,$(object-suffixes),\