Minor style(9) nit + utilize ELF features for the FreeBSD ID.
This commit is contained in:
parent
62da23f1e2
commit
1e23f97e5c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91430
@ -21,8 +21,6 @@
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef __GNUC__
|
||||
@ -74,7 +72,7 @@ _start(char *arguments, ...)
|
||||
argc = * (int *) (argv - 1);
|
||||
env = argv + argc + 1;
|
||||
environ = env;
|
||||
if(argc > 0 && argv[0] != NULL) {
|
||||
if (argc > 0 && argv[0] != NULL) {
|
||||
char *s;
|
||||
__progname = argv[0];
|
||||
for (s = __progname; *s != '\0'; s++)
|
||||
@ -82,7 +80,7 @@ _start(char *arguments, ...)
|
||||
__progname = s + 1;
|
||||
}
|
||||
|
||||
if(&_DYNAMIC != NULL)
|
||||
if (&_DYNAMIC != NULL)
|
||||
atexit(rtld_cleanup);
|
||||
|
||||
#ifdef GCRT
|
||||
@ -101,3 +99,5 @@ __asm__(".text");
|
||||
__asm__("eprol:");
|
||||
__asm__(".previous");
|
||||
#endif
|
||||
|
||||
__asm__(".ident\t\"$FreeBSD$\"");
|
||||
|
@ -21,8 +21,6 @@
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef __GNUC__
|
||||
@ -74,7 +72,7 @@ _start(char *arguments, ...)
|
||||
argc = * (int *) (argv - 1);
|
||||
env = argv + argc + 1;
|
||||
environ = env;
|
||||
if(argc > 0 && argv[0] != NULL) {
|
||||
if (argc > 0 && argv[0] != NULL) {
|
||||
char *s;
|
||||
__progname = argv[0];
|
||||
for (s = __progname; *s != '\0'; s++)
|
||||
@ -82,7 +80,7 @@ _start(char *arguments, ...)
|
||||
__progname = s + 1;
|
||||
}
|
||||
|
||||
if(&_DYNAMIC != NULL)
|
||||
if (&_DYNAMIC != NULL)
|
||||
atexit(rtld_cleanup);
|
||||
|
||||
#ifdef GCRT
|
||||
@ -101,3 +99,5 @@ __asm__(".text");
|
||||
__asm__("eprol:");
|
||||
__asm__(".previous");
|
||||
#endif
|
||||
|
||||
__asm__(".ident\t\"$FreeBSD$\"");
|
||||
|
@ -86,7 +86,7 @@ _start(argc, argv, envp, obj, cleanup, ps_strings)
|
||||
|
||||
environ = envp;
|
||||
|
||||
if(argc > 0 && argv[0] != NULL) {
|
||||
if (argc > 0 && argv[0] != NULL) {
|
||||
char *s;
|
||||
__progname = argv[0];
|
||||
for (s = __progname; *s != '\0'; s++)
|
||||
@ -117,10 +117,4 @@ __asm__("eprol:");
|
||||
__asm__(".previous");
|
||||
#endif
|
||||
|
||||
/*
|
||||
* NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
|
||||
*/
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$FreeBSD$";
|
||||
#endif
|
||||
__asm__(".ident\t\"$FreeBSD$\"");
|
||||
|
Loading…
Reference in New Issue
Block a user