Permalink
Browse files

Update newlib/libgloss

  • Loading branch information...
1 parent ba8023b commit 40e98d9dab4cbf0ac396cfc6f1212a630e262efe @atgreen committed Nov 23, 2011
Showing 313 changed files with 6,454 additions and 5,109 deletions.
View
@@ -39,28 +39,28 @@ D/rx////
D/xc16x////
D/tic6x////
D/cr16////
-/ChangeLog/1.328/Thu Aug 25 20:07:42 2011//
-/Makefile.in/1.7/Sun Jun 5 16:54:39 2011//
-/README/1.5/Sun Jun 5 16:54:39 2011//
-/acinclude.m4/1.1/Sun Jun 5 16:54:39 2011//
-/aclocal.m4/1.1/Sun Jun 5 16:54:39 2011//
-/close.c/1.1/Sun Jun 5 16:54:39 2011//
-/configure/1.33/Thu Aug 25 20:07:42 2011//
-/configure.in/1.32/Thu Aug 25 20:07:42 2011//
-/debug.c/1.1/Sun Jun 5 16:54:39 2011//
-/debug.h/1.2/Sun Jun 5 16:54:39 2011//
-/fstat.c/1.1/Sun Jun 5 16:54:39 2011//
-/getpid.c/1.1/Sun Jun 5 16:54:39 2011//
-/glue.h/1.1/Sun Jun 5 16:54:39 2011//
-/isatty.c/1.1/Sun Jun 5 16:54:39 2011//
-/kill.c/1.1/Sun Jun 5 16:54:39 2011//
-/lseek.c/1.1/Sun Jun 5 16:54:39 2011//
-/open.c/1.1/Sun Jun 5 16:54:39 2011//
-/print.c/1.1/Sun Jun 5 16:54:39 2011//
-/putnum.c/1.1/Sun Jun 5 16:54:39 2011//
-/read.c/1.2/Sun Jun 5 16:54:39 2011//
-/sbrk.c/1.1/Sun Jun 5 16:54:39 2011//
-/stat.c/1.1/Sun Jun 5 16:54:39 2011//
-/syscall.h/1.4/Sun Jun 5 16:54:39 2011//
-/unlink.c/1.1/Sun Jun 5 16:54:39 2011//
-/write.c/1.1/Sun Jun 5 16:54:39 2011//
+/ChangeLog/1.332/Wed Nov 23 16:12:38 2011//
+/Makefile.in/1.7/Mon Jul 11 12:59:20 2011//
+/README/1.5/Mon Jul 11 12:59:20 2011//
+/acinclude.m4/1.1/Mon Jul 11 12:59:20 2011//
+/aclocal.m4/1.1/Mon Jul 11 12:59:20 2011//
+/close.c/1.1/Mon Jul 11 12:59:20 2011//
+/configure/1.33/Sun Sep 25 16:57:52 2011//
+/configure.in/1.32/Sun Sep 25 16:57:52 2011//
+/debug.c/1.1/Mon Jul 11 12:59:20 2011//
+/debug.h/1.2/Mon Jul 11 12:59:20 2011//
+/fstat.c/1.1/Mon Jul 11 12:59:20 2011//
+/getpid.c/1.1/Mon Jul 11 12:59:20 2011//
+/glue.h/1.1/Mon Jul 11 12:59:20 2011//
+/isatty.c/1.1/Mon Jul 11 12:59:20 2011//
+/kill.c/1.1/Mon Jul 11 12:59:20 2011//
+/lseek.c/1.1/Mon Jul 11 12:59:20 2011//
+/open.c/1.1/Mon Jul 11 12:59:20 2011//
+/print.c/1.1/Mon Jul 11 12:59:20 2011//
+/putnum.c/1.1/Mon Jul 11 12:59:20 2011//
+/read.c/1.2/Mon Jul 11 12:59:20 2011//
+/sbrk.c/1.1/Mon Jul 11 12:59:20 2011//
+/stat.c/1.1/Mon Jul 11 12:59:20 2011//
+/syscall.h/1.4/Mon Jul 11 12:59:20 2011//
+/unlink.c/1.1/Mon Jul 11 12:59:20 2011//
+/write.c/1.1/Mon Jul 11 12:59:20 2011//
@@ -0,0 +1 @@
+R D/ms1////
View
@@ -1,3 +1,22 @@
+2011-11-08 Mike Frysinger <vapier@gentoo.org>
+
+ * libnosys/Makefile.in (install): Use INSTALL_DATA.
+
+2011-10-07 Nick Clifton <nickc@redhat.com>
+
+ * rx/crt0.S: Initialise the PID address register.
+ (__pid_base): Define weakly.
+
+2011-09-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * arm/crt0.s: Support 0 heap base response from HeapInfo syscall.
+
+2011-09-29 Bin Cheng <bin.cheng@arm.com>
+
+ * arm/arm.h (HAVE_CALL_INDIRECT): Define.
+ * arm/crt0.S (indirect_call): New macro. Encodes indirect
+ function calls. Does not use blx for pre-armv5 targets.
+
2011-08-19 Nick Clifton <nickc@redhat.com>
* iq2000/sim.ld (.gcc_except_table): Include .gcc_except_table.foo
@@ -1,33 +1,33 @@
-/Makefile.in/1.9/Thu Aug 25 20:07:42 2011//
-/_exit.c/1.2/Sun Jun 5 16:54:39 2011//
-/_kill.c/1.1/Sun Jun 5 16:54:39 2011//
-/aclocal.m4/1.1/Sun Jun 5 16:54:39 2011//
-/arm.h/1.1/Wed Jul 13 15:06:21 2011//
-/coff-iq80310.specs/1.2/Sun Jun 5 16:54:39 2011//
-/coff-pid.specs/1.1/Sun Jun 5 16:54:39 2011//
-/coff-rdimon.specs/1.1/Sun Jun 5 16:54:39 2011//
-/coff-rdpmon.specs/1.1/Sun Jun 5 16:54:39 2011//
-/coff-redboot.ld/1.2/Sun Jun 5 16:54:39 2011//
-/coff-redboot.specs/1.1/Sun Jun 5 16:54:39 2011//
-/configure/1.8/Sun Jun 5 16:54:39 2011//
-/configure.in/1.7/Sun Jun 5 16:54:39 2011//
-/crt0.S/1.9/Thu Aug 25 20:07:42 2011//
-/elf-iq80310.specs/1.3/Sun Jun 5 16:54:39 2011//
-/elf-linux.specs/1.1/Sun Jun 5 16:54:39 2011//
-/elf-pid.specs/1.1/Sun Jun 5 16:54:39 2011//
-/elf-rdimon.specs/1.1/Sun Jun 5 16:54:39 2011//
-/elf-rdpmon.specs/1.1/Sun Jun 5 16:54:39 2011//
-/elf-redboot.ld/1.3/Sun Jun 5 16:54:39 2011//
-/elf-redboot.specs/1.3/Sun Jun 5 16:54:39 2011//
-/libcfunc.c/1.9/Sun Jun 5 16:54:39 2011//
-/linux-crt0.c/1.3/Thu Aug 25 20:07:43 2011//
-/linux-syscall.h/1.1/Sun Jun 5 16:54:39 2011//
-/linux-syscalls0.S/1.6/Sun Jun 5 16:54:39 2011//
-/linux-syscalls1.c/1.2/Sun Jun 5 16:54:39 2011//
-/redboot-crt0.S/1.7/Thu Aug 25 20:07:43 2011//
-/redboot-syscalls.c/1.4/Sun Jun 5 16:54:39 2011//
-/swi.h/1.4/Thu Aug 25 20:07:43 2011//
-/syscall.h/1.1/Sun Jun 5 16:54:39 2011//
-/syscalls.c/1.17/Sun Jun 5 16:54:39 2011//
-/trap.S/1.3/Thu Aug 25 20:07:43 2011//
+/Makefile.in/1.9/Sun Sep 25 16:57:52 2011//
+/_exit.c/1.2/Mon Jul 11 12:59:20 2011//
+/_kill.c/1.1/Mon Jul 11 12:59:20 2011//
+/aclocal.m4/1.1/Mon Jul 11 12:59:20 2011//
+/arm.h/1.2/Wed Nov 23 16:12:39 2011//
+/coff-iq80310.specs/1.2/Mon Jul 11 12:59:20 2011//
+/coff-pid.specs/1.1/Mon Jul 11 12:59:20 2011//
+/coff-rdimon.specs/1.1/Mon Jul 11 12:59:20 2011//
+/coff-rdpmon.specs/1.1/Mon Jul 11 12:59:20 2011//
+/coff-redboot.ld/1.2/Mon Jul 11 12:59:20 2011//
+/coff-redboot.specs/1.1/Mon Jul 11 12:59:20 2011//
+/configure/1.8/Mon Jul 11 12:59:20 2011//
+/configure.in/1.7/Mon Jul 11 12:59:20 2011//
+/crt0.S/1.11/Wed Nov 23 16:12:39 2011//
+/elf-iq80310.specs/1.3/Mon Jul 11 12:59:20 2011//
+/elf-linux.specs/1.1/Mon Jul 11 12:59:20 2011//
+/elf-pid.specs/1.1/Mon Jul 11 12:59:20 2011//
+/elf-rdimon.specs/1.1/Mon Jul 11 12:59:20 2011//
+/elf-rdpmon.specs/1.1/Mon Jul 11 12:59:20 2011//
+/elf-redboot.ld/1.3/Mon Jul 11 12:59:20 2011//
+/elf-redboot.specs/1.3/Mon Jul 11 12:59:20 2011//
+/libcfunc.c/1.9/Mon Jul 11 12:59:20 2011//
+/linux-crt0.c/1.3/Sun Sep 25 16:57:52 2011//
+/linux-syscall.h/1.1/Mon Jul 11 12:59:20 2011//
+/linux-syscalls0.S/1.6/Mon Jul 11 12:59:20 2011//
+/linux-syscalls1.c/1.2/Mon Jul 11 12:59:20 2011//
+/redboot-crt0.S/1.7/Sun Sep 25 16:57:52 2011//
+/redboot-syscalls.c/1.4/Mon Jul 11 12:59:20 2011//
+/swi.h/1.4/Sun Sep 25 16:57:52 2011//
+/syscall.h/1.1/Mon Jul 11 12:59:20 2011//
+/syscalls.c/1.17/Mon Jul 11 12:59:20 2011//
+/trap.S/1.3/Sun Sep 25 16:57:52 2011//
D
View
@@ -50,4 +50,13 @@
# define THUMB_V7M_V6M
#endif
+/* Defined if this target supports the BLX Rm instruction. */
+#if !defined(__ARM_ARCH_2__) \
+ && !defined(__ARM_ARCH_3__) \
+ && !defined(__ARM_ARCH_3M__) \
+ && !defined(__ARM_ARCH_4__) \
+ && !defined(__ARM_ARCH_4T__)
+# define HAVE_CALL_INDIRECT
+#endif
+
#endif /* _LIBGLOSS_ARM_H */
View
@@ -34,6 +34,16 @@
\name:
.endm
#endif
+
+.macro indirect_call reg
+#ifdef HAVE_CALL_INDIRECT
+ blx \reg
+#else
+ mov lr, pc
+ mov pc, \reg
+#endif
+.endm
+
.align 0
FUNC_START _mainCRTStartup
@@ -76,6 +86,17 @@
AngelSWIAsm AngelSWI_ARM
#endif
ldr r0, .LC0 /* point at values read */
+
+ ldr r1, [r0, #0]
+ cmp r1, #0
+ bne .LC32
+ /* If the heap base value [r0, #0] is 0 then the heap base is actually
+ at the end of program data (i.e. __end__). See:
+ http://infocenter.arm.com/help/topic/com.arm.doc.dui0471-/Bacbefaa.html
+ for more information. */
+ ldr r1, .LC31
+ str r1, [r0, #0]
+.LC32:
ldr r1, [r0, #8]
ldr r2, [r0, #12]
/* We skip setting sp/sl if 0 returned from semihosting.
@@ -213,22 +234,12 @@ __change_mode:
ldr r3, .Lhwinit
cmp r3, #0
beq .LC24
-#if defined(__thumb__) || defined(__thumb2__)
- blx r3
-#else
- mov lr, pc
- mov pc, r3
-#endif
+ indirect_call r3
.LC24:
ldr r3, .Lswinit
cmp r3, #0
beq .LC25
-#if defined(__thumb__) || defined(__thumb2__)
- blx r3
-#else
- mov lr, pc
- mov pc, r3
-#endif
+ indirect_call r3
.LC25:
movs r0, #0 /* no arguments */
@@ -437,6 +448,8 @@ change_back:
.LC30:
.word CommandLine
.word 255
+.LC31:
+ .word __end__
/* Workspace for Angel calls. */
.data
@@ -1,40 +1,40 @@
D/include////
-/Makefile.in/1.8/Sun Jun 5 16:54:39 2011//
-/aclocal.m4/1.1/Sun Jun 5 16:54:39 2011//
-/basiccrt.S/1.1/Sun Jun 5 16:54:39 2011//
-/bf504.ld/1.1/Sun Jun 5 16:54:39 2011//
-/bf506.ld/1.1/Sun Jun 5 16:54:39 2011//
-/bf512.ld/1.1/Sun Jun 5 16:54:39 2011//
-/bf514.ld/1.1/Sun Jun 5 16:54:39 2011//
-/bf516.ld/1.1/Sun Jun 5 16:54:39 2011//
-/bf518.ld/1.1/Sun Jun 5 16:54:39 2011//
-/bf522.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf523.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf524.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf525.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf526.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf527.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf531.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf532.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf533.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf534.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf536.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf537.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf538.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf539.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf542.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf544.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf547.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf548.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf549.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf561.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf561a.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf561b.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf561m.ld/1.2/Sun Jun 5 16:54:39 2011//
-/bf592.ld/1.1/Sun Jun 5 16:54:39 2011//
-/bfin-common-mc.ld/1.3/Sun Jun 5 16:54:39 2011//
-/bfin-common-sc.ld/1.3/Sun Jun 5 16:54:39 2011//
-/configure/1.2/Sun Jun 5 16:54:39 2011//
-/configure.in/1.1/Sun Jun 5 16:54:39 2011//
-/crt0.S/1.2/Thu Aug 25 20:07:43 2011//
-/syscalls.c/1.8/Thu Aug 25 20:07:43 2011//
+/Makefile.in/1.8/Mon Jul 11 12:59:20 2011//
+/aclocal.m4/1.1/Mon Jul 11 12:59:20 2011//
+/basiccrt.S/1.1/Mon Jul 11 12:59:20 2011//
+/bf504.ld/1.1/Mon Jul 11 12:59:20 2011//
+/bf506.ld/1.1/Mon Jul 11 12:59:20 2011//
+/bf512.ld/1.1/Mon Jul 11 12:59:20 2011//
+/bf514.ld/1.1/Mon Jul 11 12:59:20 2011//
+/bf516.ld/1.1/Mon Jul 11 12:59:20 2011//
+/bf518.ld/1.1/Mon Jul 11 12:59:20 2011//
+/bf522.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf523.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf524.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf525.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf526.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf527.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf531.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf532.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf533.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf534.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf536.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf537.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf538.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf539.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf542.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf544.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf547.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf548.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf549.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf561.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf561a.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf561b.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf561m.ld/1.2/Mon Jul 11 12:59:20 2011//
+/bf592.ld/1.1/Mon Jul 11 12:59:20 2011//
+/bfin-common-mc.ld/1.3/Mon Jul 11 12:59:20 2011//
+/bfin-common-sc.ld/1.3/Mon Jul 11 12:59:20 2011//
+/configure/1.2/Mon Jul 11 12:59:20 2011//
+/configure.in/1.1/Mon Jul 11 12:59:20 2011//
+/crt0.S/1.2/Sun Sep 25 16:57:52 2011//
+/syscalls.c/1.8/Sun Sep 25 16:57:52 2011//
Oops, something went wrong.

0 comments on commit 40e98d9

Please sign in to comment.