[at91] fix u-boot linking failure with an EABI toolchain
[openwrt.git] / target / linux / at91 / image / u-boot / patches / 015-eabi_fixes.patch
1 Index: git/lib_arm/div0.c
2 ===================================================================
3 --- git.orig/lib_arm/div0.c
4 +++ git/lib_arm/div0.c
5 @@ -22,9 +22,3 @@
6 */
7
8 /* Replacement (=dummy) for GNU/Linux division-by zero handler */
9 -void __div0 (void)
10 -{
11 - extern void hang (void);
12 -
13 - hang();
14 -}
15 Index: git/Makefile
16 ===================================================================
17 --- git.orig/Makefile
18 +++ git/Makefile
19 @@ -225,7 +225,7 @@ LIBS := $(addprefix $(obj),$(LIBS))
20 .PHONY : $(LIBS)
21
22 # Add GCC lib
23 -PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
24 +PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -lgcc_eh
25
26 # The "tools" are needed early, so put this first
27 # Don't include stuff already done in $(LIBS)
28 --- a/board/vlink/vlink.c 2009-10-29 16:40:33.000000000 +0100
29 +++ b/board/vlink/vlink.c 2009-10-29 16:43:27.000000000 +0100
30 @@ -33,6 +33,9 @@
31 * Miscelaneous platform dependent initialisations
32 */
33
34 +void raise() {}
35 +void abort() {}
36 +
37 int board_init (void)
38 {
39 DECLARE_GLOBAL_DATA_PTR;
40 --- a/board/vlink/u-boot.lds 2009-10-29 16:40:33.000000000 +0100
41 +++ b/board/vlink/u-boot.lds 2009-10-29 16:43:57.000000000 +0100
42 @@ -38,6 +38,10 @@
43
44 . = ALIGN(4);
45 .rodata : { *(.rodata) }
46 + .ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) }
47 + __exidx_start = .;
48 + .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
49 + __exidx_end = .;
50
51 . = ALIGN(4);
52 .data : { *(.data) }
This page took 0.078895 seconds and 5 git commands to generate.