Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2024 20:29:16 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 80ffc7398b83 - main - libsys/arm: make vfork less of an outlier
Message-ID:  <202404222029.43MKTG6T001109@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=80ffc7398b8302b2d54d783d8349e54d877a4250

commit 80ffc7398b8302b2d54d783d8349e54d877a4250
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-04-22 19:13:35 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-04-22 20:28:51 +0000

    libsys/arm: make vfork less of an outlier
    
    Following the pattern of other architectures, make __sys_vfork the main
    symbol and _vfork and vfork weak aliases.  This avoids the need to
    special case vfork in the generated list of symbols.
    
    Differential Revision:  https://reviews.freebsd.org/D44330
---
 lib/libsys/arm/vfork.S | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/lib/libsys/arm/vfork.S b/lib/libsys/arm/vfork.S
index 2b92f56ad4e4..ef9a426c6de5 100644
--- a/lib/libsys/arm/vfork.S
+++ b/lib/libsys/arm/vfork.S
@@ -42,13 +42,17 @@
 	.text
 	.align	0
 
-ENTRY(vfork)
+ENTRY(__sys_vfork)
+	.weak _C_LABEL(vfork);
+	.set _C_LABEL(vfork), _C_LABEL(__sys_vfork);
+	.weak _C_LABEL(_vfork);
+	.set _C_LABEL(_vfork), _C_LABEL(__sys_vfork);
 	mov	r2, r14
 	_SYSCALL(vfork)
 	bcs	PIC_SYM(CERROR, PLT)
 	sub	r1, r1, #1	/* r1 == 0xffffffff if parent, 0 if child */
 	and	r0, r0, r1	/* r0 == 0 if child, else unchanged */
 	mov	r15, r2
-END(vfork)
+END(__sys_vfork)
 
 	.section .note.GNU-stack,"",%progbits



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202404222029.43MKTG6T001109>