]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
aarch64: fix static PIE start code for BTI [BZ #27068]
authorGuillaume Gardet <guillaume.gardet@arm.com>
Mon, 14 Dec 2020 15:38:22 +0000 (15:38 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 21 Jan 2021 16:04:01 +0000 (16:04 +0000)
A bti c was missing from rcrt1.o which made all -static-pie
binaries fail at program startup on BTI enabled systems.

Fixes bug 27068.

(cherry picked from commit d4136903a29baabeec8987b53081def8b4a49826)

sysdeps/aarch64/start.S

index 108f602721b42cac527a0be4f7e2733aec1dc59d..1998ea95d407697fe1b3ced767928092179e4541 100644 (file)
@@ -99,6 +99,7 @@ ENTRY(_start)
           because crt1.o and rcrt1.o share code and the later must avoid the
           use of GOT relocations before __libc_start_main is called.  */
 __wrap_main:
+       BTI_C
        b       main
 #endif
 END(_start)