summaryrefslogtreecommitdiffstats
path: root/lib/csu
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-08-20 21:37:22 +0000
committerjb <jb@FreeBSD.org>1998-08-20 21:37:22 +0000
commitbc2aa8b61ac0df0da191f4b5f3e71139d17b975f (patch)
tree6c81879d35c30433b8baa55c4cad6215b155ce16 /lib/csu
parent68c64482c2178bc010b0daa983202e72c05f5cec (diff)
downloadFreeBSD-src-bc2aa8b61ac0df0da191f4b5f3e71139d17b975f.zip
FreeBSD-src-bc2aa8b61ac0df0da191f4b5f3e71139d17b975f.tar.gz
Remove the bootstrap hack that prevented the use of the rtld.
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/alpha/Makefile13
-rw-r--r--lib/csu/alpha/crt1.c14
2 files changed, 3 insertions, 24 deletions
diff --git a/lib/csu/alpha/Makefile b/lib/csu/alpha/Makefile
index 43db2d9..219f923 100644
--- a/lib/csu/alpha/Makefile
+++ b/lib/csu/alpha/Makefile
@@ -1,24 +1,15 @@
#
-# $Id: Makefile,v 1.4 1998/04/01 03:24:19 jb Exp $
+# $Id: Makefile,v 1.5 1998/05/04 02:06:09 jb Exp $
#
SRCS= crt1.c crtbegin.c crtend.c
OBJS= crt1.o crtbegin.o crtend.o
SOBJS= crtbegin.so crtend.so
-CFLAGS+= -Wall -Wno-unused
+CFLAGS+= -Wall -Wno-unused -I${.CURDIR}/../../../libexec/rtld-elf
NOMAN= true
NOPIC= true
NOPROFILE= true
INTERNALLIB= true
-CFLAGS=
-
-# Force bootstrap mode until rtld is ported. The headers are broken
-# on alpha as the result of i386 changes.
-BOOTSTRAP= true
-
-.ifndef BOOTSTRAP
-CFLAGS+= -DHAVE_RTLD -I${.CURDIR}/../../../libexec/rtld-elf
-.endif
all: ${OBJS} ${SOBJS}
diff --git a/lib/csu/alpha/crt1.c b/lib/csu/alpha/crt1.c
index bbb55bb..2f7fd95 100644
--- a/lib/csu/alpha/crt1.c
+++ b/lib/csu/alpha/crt1.c
@@ -30,7 +30,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: crt1.c,v 1.1.1.1 1998/03/07 20:27:10 jdp Exp $
+ * $Id: crt1.c,v 1.1.1.2 1998/03/11 20:36:09 jb Exp $
*/
#ifndef __GNUC__
@@ -39,7 +39,6 @@
#include <stdlib.h>
-#ifdef HAVE_RTLD
#include <sys/exec.h>
#include <sys/syscall.h>
#include <rtld.h>
@@ -58,15 +57,6 @@ extern int __syscall (int, ...);
#pragma weak _DYNAMIC
extern int _DYNAMIC;
-#else
-/*
- * When doing a bootstrap build, the header files for runtime
- * loader support are not available, so this source file is
- * compiled to a static object.
- */
-#define Obj_Entry void
-struct ps_strings;
-#endif
extern void _init(void);
extern void _fini(void);
@@ -93,7 +83,6 @@ _start(char **ap,
if(argc > 0)
__progname = argv[0];
-#ifdef HAVE_RTLD
if (&_DYNAMIC != NULL) {
if ((obj == NULL) || (obj->magic != RTLD_MAGIC))
_FATAL("Corrupt Obj_Entry pointer in GOT");
@@ -103,7 +92,6 @@ _start(char **ap,
__mainprog_obj = obj;
atexit(cleanup);
}
-#endif
atexit(_fini);
_init();
OpenPOWER on IntegriCloud