summaryrefslogtreecommitdiffstats
path: root/lib/csu/amd64
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2000-05-19 04:32:17 +0000
committerjdp <jdp@FreeBSD.org>2000-05-19 04:32:17 +0000
commita15d1eb9f15ac26945f4399bd94940f85f881082 (patch)
treedb6687e6a9347ab1b0749ba27286aa49dd7563b0 /lib/csu/amd64
parentddbca3f99dc2f515e35e929d26787aa6c972738d (diff)
downloadFreeBSD-src-a15d1eb9f15ac26945f4399bd94940f85f881082.zip
FreeBSD-src-a15d1eb9f15ac26945f4399bd94940f85f881082.tar.gz
This is step 1 in an effort to unify the start-up files for the
various architectures. Now all the work is done in crtbegin.c. It doesn't contain any assembly language code, so it should work fine on all architectures. (I have tested it on the i386 and the alpha.) The old assembly language files crt[in].S are now empty shells that generate no code or data. They should not be removed any time soon, because the various versions of gcc in src and ports expect them to exist. Next I will move crtbegin.c into a new common machine-independent directory, and adjust the i386-elf Makefile to use that version. After that I will adjust the alpha Makefile to use the common version too. Requested by: obrien
Diffstat (limited to 'lib/csu/amd64')
-rw-r--r--lib/csu/amd64/crti.S31
-rw-r--r--lib/csu/amd64/crtn.S11
2 files changed, 10 insertions, 32 deletions
diff --git a/lib/csu/amd64/crti.S b/lib/csu/amd64/crti.S
index a4df32e..536d2c2 100644
--- a/lib/csu/amd64/crti.S
+++ b/lib/csu/amd64/crti.S
@@ -1,5 +1,5 @@
/*-
- * Copyright 1996-1998 John D. Polstra.
+ * Copyright 1996, 1997, 1998, 2000 John D. Polstra.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -25,28 +25,7 @@
* $FreeBSD$
*/
- /* See http://www.netbsd.org/Documentation/kernel/elf-notes.html for
- details on the ELF .note section as we are using it. */
- .section .note.ABI-tag, "a"
- .align 4
- .long 1f - 0f # name length
- .long 3f - 2f # data length
- .long 1 # note type
-0: .asciz "FreeBSD" # vendor name
-1: .align 4
-2: .long 500000 # data - ABI tag
- # (from __FreeBSD_version (param.h))
-3: .align 4 # pad out section
-
-
- .section .init,"ax",@progbits
- .align 4
- .globl _init
- .type _init,@function
-_init:
-
- .section .fini,"ax",@progbits
- .align 4
- .globl _fini
- .type _fini,@function
-_fini:
+/*
+ * This file is not used any more. It will go away as soon as the gcc
+ * linker specs have been updated accordingly.
+ */
diff --git a/lib/csu/amd64/crtn.S b/lib/csu/amd64/crtn.S
index 0944ee3..536d2c2 100644
--- a/lib/csu/amd64/crtn.S
+++ b/lib/csu/amd64/crtn.S
@@ -1,5 +1,5 @@
/*-
- * Copyright 1996-1998 John D. Polstra.
+ * Copyright 1996, 1997, 1998, 2000 John D. Polstra.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -25,8 +25,7 @@
* $FreeBSD$
*/
- .section .init,"ax",@progbits
- ret
-
- .section .fini,"ax",@progbits
- ret
+/*
+ * This file is not used any more. It will go away as soon as the gcc
+ * linker specs have been updated accordingly.
+ */
OpenPOWER on IntegriCloud