kernel_optimize_test/arch/avr32/lib
Ben Nizette 8d29b7b9f8 avr32: Fix out-of-range rcalls in large kernels
Replace handcoded rcall instructions with the call pseudo-instruction.
For kernels too far over 1MB the rcall instruction can't reach and
linking will fail.  We already call the final linker with --relax which
converts call pseudo-instructions to the right things anyway.

This fixes

arch/avr32/kernel/built-in.o: In function `syscall_exit_work':
(.ex.text+0x198): relocation truncated to fit: R_AVR32_22H_PCREL against symbol `schedule' defined in .sched.text section in kernel/built-in.o
arch/avr32/kernel/built-in.o: In function `fault_exit_work':
(.ex.text+0x3b6): relocation truncated to fit: R_AVR32_22H_PCREL against symbol `schedule' defined in .sched.text section in kernel/built-in.o

But I'm still left with

arch/avr32/kernel/built-in.o:(.fixup+0x2): relocation truncated to fit: R_AVR32_22H_PCREL against `.text'+45a
arch/avr32/kernel/built-in.o:(.fixup+0x8): relocation truncated to fit: R_AVR32_22H_PCREL against `.text'+8ea
arch/avr32/kernel/built-in.o:(.fixup+0xe): relocation truncated to fit: R_AVR32_22H_PCREL against `.text'+abe
arch/avr32/kernel/built-in.o:(.fixup+0x14): relocation truncated to fit: R_AVR32_22H_PCREL against `.text'+ac8
arch/avr32/kernel/built-in.o:(.fixup+0x1a): relocation truncated to fit: R_AVR32_22H_PCREL against `.text'+ad2
arch/avr32/kernel/built-in.o:(.fixup+0x20): relocation truncated to fit: R_AVR32_22H_PCREL against `.text'+adc
arch/avr32/kernel/built-in.o:(.fixup+0x26): relocation truncated to fit: R_AVR32_22H_PCREL against `.text'+ae6
arch/avr32/kernel/built-in.o:(.fixup+0x2c): relocation truncated to fit: R_AVR32_22H_PCREL against `.text'+af0
arch/avr32/kernel/built-in.o:(.fixup+0x32): additional relocation overflows omitted from the output

These are caused by a similar problem with 'rjmp' instructions.
Unfortunately, there's no easy fix for these at the moment since we
don't have a arbitrary-range 'jmp' instruction similar to 'call'.

Signed-off-by: Ben Nizette <bn@niasdigital.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
2009-01-16 09:31:57 +01:00
..
__avr32_asr64.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
__avr32_lsl64.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
__avr32_lsr64.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
clear_user.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
copy_user.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
csum_partial_copy_generic.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
csum_partial.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
delay.c read_current_timer() cleanups 2008-02-06 10:41:02 -08:00
findbit.S avr32: add generic_find_next_le_bit bit function 2008-09-19 18:21:30 +02:00
io-readsb.S avr32: Fix wrong I/O access size in __raw_readsb 2008-06-27 15:07:50 +02:00
io-readsl.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
io-readsw.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
io-writesb.S [PATCH] AVR32: Implement and export __raw_{read,write}s[bwl] 2006-10-25 20:26:33 -07:00
io-writesl.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
io-writesw.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
Makefile [PATCH] AVR32: Implement and export __raw_{read,write}s[bwl] 2006-10-25 20:26:33 -07:00
memcpy.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
memset.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
strncpy_from_user.S [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
strnlen_user.S avr32: Fix out-of-range rcalls in large kernels 2009-01-16 09:31:57 +01:00