|
Message-ID: <54340EDC.3050701@pennware.com>
Date: Tue, 07 Oct 2014 11:03:40 -0500
From: Richard Pennington <rich@...nware.com>
To: musl@...ts.openwall.com
Subject: Minor changes to crt1.s files to work with clang.
I was looking into replacing crt1.s with crt1.c for ARM, i386,
Microblaze, Mips, PowerPC, and x86_64.
clang had a couple of issues with the ARM and Mips files. I have
attached a small patch for them.
-Rich
Copy of attached patch:
Index: musl/arch/arm/crt_arch.h
===================================================================
--- musl/arch/arm/crt_arch.h (revision 4248)
+++ musl/arch/arm/crt_arch.h (working copy)
@@ -1,4 +1,5 @@
__asm__("\
+.text \n\
.global _start \n\
.type _start,%function \n\
_start: \n\
@@ -5,6 +6,6 @@
mov fp, #0 \n\
mov lr, #0 \n\
mov a1, sp \n\
- and sp, sp, #-16 \n\
+ bic sp, sp, #0xF \n\
bl __cstart \n\
");
Index: musl/arch/mips/crt_arch.h
===================================================================
--- musl/arch/mips/crt_arch.h (revision 4248)
+++ musl/arch/mips/crt_arch.h (working copy)
@@ -1,5 +1,7 @@
__asm__("\n\
.set push\n\
+.text \n\
+.option pic2\n\
.set noreorder\n\
.global __start\n\
.global _start\n\
View attachment "musl_patch.txt" of type "text/plain" (748 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.