Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/arm_elf Emit a note for EABI programs.



details:   https://anonhg.NetBSD.org/src/rev/1b5ba6dae698
branches:  trunk
changeset: 780677:1b5ba6dae698
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Aug 03 08:01:42 2012 +0000

description:
Emit a note for EABI programs.

diffstat:

 lib/csu/arm_elf/dot_init.h |  18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r adff40cbe950 -r 1b5ba6dae698 lib/csu/arm_elf/dot_init.h
--- a/lib/csu/arm_elf/dot_init.h        Fri Aug 03 08:01:35 2012 +0000
+++ b/lib/csu/arm_elf/dot_init.h        Fri Aug 03 08:01:42 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dot_init.h,v 1.6 2008/05/10 15:31:03 martin Exp $ */
+/* $NetBSD: dot_init.h,v 1.7 2012/08/03 08:01:42 matt Exp $ */
 
 /*-
  * Copyright (c) 2001 Ross Harvey
@@ -36,6 +36,22 @@
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 #include <machine/asm.h>
 
+#if defined(__ARM_EABI__) && defined(__S)
+__asm(
+       ".section\t\".note.netbsd.aeabi\", \"a\"\n"
+       "\t.p2align\t2\n\n"
+
+       "\t.long\t" __S(ELF_NOTE_NETBSD_NAMESZ) "\n"
+       "\t.long\t" __S(ELF_NOTE_ARMEABI_DESCSZ) "\n"
+       "\t.long\t" __S(ELF_NOTE_TYPE_ARMEABI_TAG) "\n"
+       "\t.ascii\t" __S(ELF_NOTE_NETBSD_NAME) "\n"
+       "\t.long\t" __S(ELF_NOTE_ARMEABI_AAPCS) "\n\n"
+
+       "\t.previous\n"
+       "\t.p2align\t2\n"
+);
+#endif /* __ARM_EABI__ */
+
 #define        MD_SECTION_PROLOGUE(sect, entry_pt)             \
                __asm (                                 \
                ".section "#sect",\"ax\",%progbits      \n"\



Home | Main Index | Thread Index | Old Index