summaryrefslogtreecommitdiffstats
path: root/usr/klibc/shared-stub.S
blob: 15c0f02af32da1d76dd9e8a3200820a34e5881f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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