mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
aarch64: Add GCS support to vfork
Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
parent
5ff5e7836e
commit
1cf59c2603
1 changed files with 6 additions and 1 deletions
|
@ -33,8 +33,13 @@ ENTRY (__vfork)
|
||||||
|
|
||||||
cmn x0, #4095
|
cmn x0, #4095
|
||||||
b.cs .Lsyscall_error
|
b.cs .Lsyscall_error
|
||||||
|
cbz x0, L(child)
|
||||||
RET
|
RET
|
||||||
|
L(child):
|
||||||
|
/* Return with indirect branch in the child to support GCS.
|
||||||
|
Compilers insert BTI instruction after vfork() to make
|
||||||
|
sure return via BR works on systems with BTI. */
|
||||||
|
br x30
|
||||||
PSEUDO_END (__vfork)
|
PSEUDO_END (__vfork)
|
||||||
libc_hidden_def (__vfork)
|
libc_hidden_def (__vfork)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue