summaryrefslogtreecommitdiffstats
path: root/lib/csu/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csu/powerpc')
-rw-r--r--lib/csu/powerpc/crt1.c5
-rw-r--r--lib/csu/powerpc/crti.S9
-rw-r--r--lib/csu/powerpc/crtn.S7
3 files changed, 10 insertions, 11 deletions
diff --git a/lib/csu/powerpc/crt1.c b/lib/csu/powerpc/crt1.c
index 3a2f6dd..67de2f5 100644
--- a/lib/csu/powerpc/crt1.c
+++ b/lib/csu/powerpc/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"
@@ -120,5 +123,3 @@ __asm__(".text");
__asm__("eprol:");
__asm__(".previous");
#endif
-
-__asm__(".ident\t\"$FreeBSD$\"");
diff --git a/lib/csu/powerpc/crti.S b/lib/csu/powerpc/crti.S
index 75d4345..544bfa9 100644
--- a/lib/csu/powerpc/crti.S
+++ b/lib/csu/powerpc/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
@@ -44,7 +47,3 @@ _fini:
stw 31,12(1)
stw 0,20(1)
mr 31,1
-
-
- .section .rodata
-.ascii "$FreeBSD$\0"
diff --git a/lib/csu/powerpc/crtn.S b/lib/csu/powerpc/crtn.S
index 80735cc..d3baa70 100644
--- a/lib/csu/powerpc/crtn.S
+++ b/lib/csu/powerpc/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
lwz 11,0(1)
lwz 0,4(11)
@@ -39,7 +42,3 @@
lwz 31,-4(11)
mr 1,11
blr
-
-
- .section .rodata
-.ascii "$FreeBSD$\0"
OpenPOWER on IntegriCloud