-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
438 changed files
with
3,380 additions
and
2,474 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# $FreeBSD$ | ||
|
||
.include <src.opts.mk> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*- | ||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD | ||
* SPDX-License-Identifier: BSD-1-Clause | ||
* | ||
* Copyright 2012 Konstantin Belousov <[email protected]> | ||
* Copyright (c) 2018 The FreeBSD Foundation | ||
|
@@ -12,9 +12,6 @@ | |
* are met: | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
|
@@ -29,13 +26,10 @@ | |
*/ | ||
|
||
#include <sys/cdefs.h> | ||
|
||
#include <sys/param.h> | ||
#include <sys/elf.h> | ||
#include <sys/elf_common.h> | ||
|
||
#include "notes.h" | ||
|
||
extern int main(int, char **, char **); | ||
|
||
extern void (*__preinit_array_start[])(int, char **, char **) __hidden; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,9 @@ | ||
|
||
.PATH: ${.CURDIR:H}/common | ||
|
||
SRCS= crti.S crtn.S | ||
OBJS= ${SRCS:N*.h:R:S/$/.o/g} | ||
OBJS+= gcrt1.o crt1.o Scrt1.o | ||
CFLAGS+= -I${.CURDIR} -I${.CURDIR:H}/common \ | ||
-I${SRCTOP}/lib/libc/include | ||
CFLAGS+= -I${.CURDIR} | ||
CFLAGS+= -DCRT_IRELOC_REL | ||
|
||
FILES= ${OBJS} | ||
FILESMODE= ${LIBMODE} | ||
FILESOWN= ${LIBOWN} | ||
FILESGRP= ${LIBGRP} | ||
FILESDIR= ${LIBDIR} | ||
# These FILES qualify as libraries for the purpose of LIBRARIES_ONLY. | ||
.undef LIBRARIES_ONLY | ||
|
||
CLEANFILES= ${OBJS} crt1_c.o crt1_s.o gcrt1_c.o Scrt1_c.o | ||
CLEANFILES+= crt1_c.s gcrt1_c.s Scrt1_c.s | ||
|
||
# See the comment in lib/csu/common/crtbrand.c for the reason crt1_c.c is not | ||
# directly compiled to .o files. | ||
|
||
gcrt1_c.s: crt1_c.c | ||
${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1_c.c | ||
sed ${SED_FIX_NOTE} ${.TARGET} | ||
|
||
gcrt1_c.o: gcrt1_c.s | ||
${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} gcrt1_c.s | ||
|
||
gcrt1.o: gcrt1_c.o crt1_s.o | ||
${LD} ${_LDFLAGS} -o gcrt1.o -r crt1_s.o gcrt1_c.o | ||
|
||
crt1_c.s: crt1_c.c | ||
${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1_c.c | ||
sed ${SED_FIX_NOTE} ${.TARGET} | ||
|
||
crt1_c.o: crt1_c.s | ||
${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} crt1_c.s | ||
|
||
crt1.o: crt1_c.o crt1_s.o | ||
${LD} ${_LDFLAGS} -o crt1.o -r crt1_s.o crt1_c.o | ||
${OBJCOPY} --localize-symbol _start1 crt1.o | ||
|
||
Scrt1_c.s: crt1_c.c | ||
${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1_c.c | ||
sed ${SED_FIX_NOTE} ${.TARGET} | ||
|
||
Scrt1_c.o: Scrt1_c.s | ||
${CC} ${CFLAGS:N-g} ${ACFLAGS} -c -o ${.TARGET} Scrt1_c.s | ||
|
||
Scrt1.o: Scrt1_c.o crt1_s.o | ||
${LD} ${_LDFLAGS} -o Scrt1.o -r crt1_s.o Scrt1_c.o | ||
${OBJCOPY} --localize-symbol _start1 Scrt1.o | ||
CRT1OBJS+= crt1_s.o | ||
|
||
.include <bsd.lib.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,6 @@ | |
*/ | ||
|
||
#include <machine/asm.h> | ||
|
||
.section .init,"ax",@progbits | ||
.align 4 | ||
.globl _init | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ FBSD_1.0 { | |
/* PSEUDO syscalls */ | ||
_exit; | ||
|
||
.mcount; | ||
_setjmp; | ||
_longjmp; | ||
fabs; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ MDSRCS+= \ | |
memset.S \ | ||
strcat.S \ | ||
strcmp.S \ | ||
strlen.S \ | ||
stpcpy.S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.