diff options
Diffstat (limited to '')
-rw-r--r-- | usr/klibc/shared-stub.S | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/usr/klibc/shared-stub.S b/usr/klibc/shared-stub.S new file mode 100644 index 0000000..15c0f02 --- /dev/null +++ b/usr/klibc/shared-stub.S @@ -0,0 +1,22 @@ +# +# This is a hack to generate the .intrp section, which then +# ld turns into an PT_INTERP header. +# +# NOTE: The .interp section needs to be "a", or it doesnt work... +# + + .section ".interp","a" + .ascii LIBDIR + .ascii "/klibc-" + .ascii SOHASH + .ascii ".so" + .byte 0 + +# +# Ensure that every executable includes some static data, as +# ELF loaders tend to assume this - see +# <https://bugs.debian.org/919921>, <https://bugs.debian.org/1016718>. +# + + .section ".data" + .byte 0 |