Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARMv7 - Fix compiler and partial compilation
- Loading branch information
1 parent
09a0283
commit 3d67e21
Showing
16 changed files
with
139 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
Externals/cross-compiler/patches/binutils/gas/configure.tgt.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- gas/configure.tgt 2011-07-29 00:00:00.000000 +0000 | ||
+++ gas/configure.tgt 2013-03-01 10:45:00.000000 +0800 | ||
@@ -173,2 +173,3 @@ | ||
@@ -173,2 +173,4 @@ | ||
i386-sequent-bsd*) fmt=aout em=dynix ;; | ||
+ i386-*-acess2*) fmt=elf ;; | ||
+ arm-*-acess2*) fmt=elf ;; | ||
i386-*-beospe*) fmt=coff em=pe ;; |
4 changes: 3 additions & 1 deletion
4
Externals/cross-compiler/patches/binutils/ld/Makefile.in.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
--- ld/Makefile.in | ||
+++ ld/Makefile.in | ||
@@ -2627,2 +2627,6 @@ | ||
@@ -2627,2 +2627,8 @@ | ||
${GENSCRIPTS} elf32xtensa "$(tdir_elf32xtensa)" | ||
+eacess2_i386.c: $(srcdir)/emulparams/acess2_i386.sh $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | ||
+ ${GENSCRIPTS} acess2_i386 "$(tdir_acess2_i386)" | ||
+eacess2_amd64.c: $(srcdir)/emulparams/acess2_amd64.sh $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | ||
+ ${GENSCRIPTS} acess2_amd64 "$(tdir_acess2_amd64)" | ||
+eacess2_arm.c: $(srcdir)/emulparams/acess2_arm.sh $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | ||
+ ${GENSCRIPTS} acess2_arm "$(tdir_acess2_arm)" | ||
eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \ |
3 changes: 2 additions & 1 deletion
3
Externals/cross-compiler/patches/binutils/ld/configure.tgt.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
--- ld/configure.tgt | ||
+++ ld/configure.tgt | ||
@@ -167,1 +167,3 @@ | ||
@@ -167,1 +167,4 @@ | ||
i[3-7]86-*-nto-qnx*) targ_emul=i386nto ;; | ||
+i[3-7]86-*-acess2*) targ_emul=acess2_i386 ;; | ||
+x86_64-*-acess2*) targ_emul=acess2_amd64 ;; | ||
+arm-*-acess2*) targ_emul=acess2_arm ;; | ||
|
19 changes: 19 additions & 0 deletions
19
Externals/cross-compiler/patches/binutils/ld/emulparams/acess2_arm.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SCRIPT_NAME=elf | ||
OUTPUT_FORMAT="elf32-littlearm" | ||
BIG_OUTPUT_FORMAT="elf32-bigarm" | ||
LITTLE_OUTPUT_FORMAT="elf32-littlearm" | ||
TEXT_START_ADDR=0x8000 | ||
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" | ||
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" | ||
TEMPLATE_NAME=elf32 | ||
|
||
ARCH=arm | ||
MACHINE= | ||
GENERATE_SHLIB_SCRIPT=yes | ||
GENERATE_PIE_SCRIPT=yes | ||
|
||
NO_SMALL_DATA=yes | ||
SEPARATE_GOTPLT=12 | ||
|
||
ELF_INTERPRETER_NAME=\"/Acess/Libs/ld-acess.so\" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.section .init | ||
.global _init | ||
.type _init, function | ||
_init: | ||
#ifdef __thumb__ | ||
.thumb | ||
|
||
push {r3, r4, r5, r6, r7, lr} | ||
#else | ||
.arm | ||
mov ip, sp | ||
stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, ip, lr, pc} | ||
sub fp, ip, #4 | ||
#endif | ||
/* gcc will nicely put the contents of crtbegin.o's .init section here. */ | ||
|
||
.section .fini | ||
.global _fini | ||
.type _fini, function | ||
_fini: | ||
#ifdef __thumb__ | ||
.thumb | ||
|
||
push {r3, r4, r5, r6, r7, lr} | ||
#else | ||
.arm | ||
mov ip, sp | ||
stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, ip, lr, pc} | ||
sub fp, ip, #4 | ||
#endif | ||
/* gcc will nicely put the contents of crtbegin.o's .fini section here. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.section .init | ||
/* gcc will nicely put the contents of crtend.o's .init section here. */ | ||
#ifdef __thumb__ | ||
.thumb | ||
|
||
pop {r3, r4, r5, r6, r7} | ||
pop {r3} | ||
mov lr, r3 | ||
#else | ||
.arm | ||
|
||
sub sp, fp, #40 | ||
ldmfd sp, {r4, r5, r6, r7, r8, r9, sl, fp, sp, lr} | ||
#endif | ||
|
||
#if defined __THUMB_INTERWORK__ || defined __thumb__ | ||
bx lr | ||
#else | ||
mov pc, lr | ||
#endif | ||
|
||
.section .fini | ||
/* gcc will nicely put the contents of crtend.o's .fini section here. */ | ||
#ifdef __thumb__ | ||
.thumb | ||
|
||
pop {r3, r4, r5, r6, r7} | ||
pop {r3} | ||
mov lr, r3 | ||
#else | ||
.arm | ||
|
||
sub sp, fp, #40 | ||
ldmfd sp, {r4, r5, r6, r7, r8, r9, sl, fp, sp, lr} | ||
#endif | ||
|
||
#if defined __THUMB_INTERWORK__ || defined __thumb__ | ||
bx lr | ||
#else | ||
mov pc, lr | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters