summaryrefslogtreecommitdiffstats
path: root/lib/csu/powerpc64
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2010-12-09 21:31:21 +0000
committerdim <dim@FreeBSD.org>2010-12-09 21:31:21 +0000
commit12dd9eb8e940c48f9fc30dbc137071b4fe5caead (patch)
tree96ac8370f6f90ce1b871c6c0926f956cf19ad8a4 /lib/csu/powerpc64
parent3d43bf49cce8a92469a10d65a75094c9292d513d (diff)
downloadFreeBSD-src-12dd9eb8e940c48f9fc30dbc137071b4fe5caead.zip
FreeBSD-src-12dd9eb8e940c48f9fc30dbc137071b4fe5caead.tar.gz
Let all .c and .S files under lib/csu consistently use the __FBSDID()
macro for identification, instead of several different hand-rolled variants (plain .ident, .ascii, etc).
Diffstat (limited to 'lib/csu/powerpc64')
-rw-r--r--lib/csu/powerpc64/crt1.c5
-rw-r--r--lib/csu/powerpc64/crti.S8
-rw-r--r--lib/csu/powerpc64/crtn.S7
3 files changed, 10 insertions, 10 deletions
diff --git a/lib/csu/powerpc64/crt1.c b/lib/csu/powerpc64/crt1.c
index 080691c..080bd4d 100644
--- a/lib/csu/powerpc64/crt1.c
+++ b/lib/csu/powerpc64/crt1.c
@@ -39,6 +39,9 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#ifndef lint
#ifndef __GNUC__
#error "GCC is needed to compile this file"
@@ -119,5 +122,3 @@ __asm__(".text");
__asm__("eprol:");
__asm__(".previous");
#endif
-
-__asm__(".ident\t\"$FreeBSD$\"");
diff --git a/lib/csu/powerpc64/crti.S b/lib/csu/powerpc64/crti.S
index 4118765..edca7ba 100644
--- a/lib/csu/powerpc64/crti.S
+++ b/lib/csu/powerpc64/crti.S
@@ -22,7 +22,10 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
+
+#include <machine/asm.h>
+__FBSDID("$FreeBSD$");
+
.section .init,"ax",@progbits
.align 2
.globl _init
@@ -56,6 +59,3 @@ _fini:
stdu 1,-48(1)
mflr 0
std 0,64(1)
-
- .section .rodata
-.ascii "$FreeBSD$\0"
diff --git a/lib/csu/powerpc64/crtn.S b/lib/csu/powerpc64/crtn.S
index 42ca083..c62f913 100644
--- a/lib/csu/powerpc64/crtn.S
+++ b/lib/csu/powerpc64/crtn.S
@@ -23,6 +23,9 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <machine/asm.h>
+__FBSDID("$FreeBSD$");
+
.section .init,"ax",@progbits
ld %r1,0(%r1)
ld 0,16(%r1)
@@ -35,7 +38,3 @@
ld 0,16(%r1)
mtlr 0
blr
-
-
- .section .rodata
-.ascii "$FreeBSD$\0"
OpenPOWER on IntegriCloud