Call entry point of the executable through register x17. This allows it
authorkettenis <kettenis@openbsd.org>
Fri, 31 Mar 2023 18:45:05 +0000 (18:45 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 31 Mar 2023 18:45:05 +0000 (18:45 +0000)
commit7dfdc4ecaff5fdabe7a7c328385ffa6e42e169db
tree105ea1dcad63f9d483e4b4303d8d8ea22587ef8f
parent47468d46a29a8a75919c8c03877ce007929c813c
Call entry point of the executable through register x17.  This allows it
to be a normal C function that starts with "bti c" when BTI contro flow
integretry enforcement is in place.  Add "bti c" to _dl_bind_start().

Remove unused _rtld_tlsdesc() function to avoid having to add "bti c" to it.

ok deraadt@
libexec/ld.so/aarch64/ldasm.S