summaryrefslogtreecommitdiff
path: root/packages/apex/files/fix-compiler-inlining.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/apex/files/fix-compiler-inlining.patch')
-rw-r--r--packages/apex/files/fix-compiler-inlining.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/apex/files/fix-compiler-inlining.patch b/packages/apex/files/fix-compiler-inlining.patch
new file mode 100644
index 0000000000..427068dab2
--- /dev/null
+++ b/packages/apex/files/fix-compiler-inlining.patch
@@ -0,0 +1,28 @@
+--- apex-1.5.4/src/arch-arm/entry/apex.lds.S~ 2007-05-31 14:54:41.000000000 +0930
++++ apex-1.5.4/src/arch-arm/entry/apex.lds.S 2007-06-02 14:26:51.000000000 +0930
+@@ -48,8 +48,8 @@
+ }
+ .reset.post : { /* Post-SDRAM init code.*/
+ *(.reset.post)
+- *(.reset.postfn)
+- *(.reset.postex)
++ *(.reset.post.func)
++ *(.reset.post.exit)
+ }
+ .rlocate : { /* Final/only relocation of APEX to SDRAM */
+ *(.rlocate)
+--- apex-1.5.4/src/arch-arm/entry/reset.c~ 2007-05-31 14:54:41.000000000 +0930
++++ apex-1.5.4/src/arch-arm/entry/reset.c 2007-06-02 14:27:20.000000000 +0930
+@@ -292,10 +292,10 @@
+ // __asm volatile ("mov sp, %0" :: "r" (&APEX_VMA_STACK_START));
+
+ __asm volatile ("mov r0, %0" :: "r" (offset));
+- __asm volatile ("b reset_post_2");
++ __asm volatile ("b reset_post_exit");
+ }
+
+-void __naked __section (.reset.post) reset_post_2 (void)
++void __naked __section (.reset.post.exit) reset_post_exit (void)
+ {
+ }
+