linux/arch/nds32/include/asm
Greentime Hu 987553894f nds32: fix build error "relocation truncated to fit: R_NDS32_25_PCREL_RELA" when
make allyesconfig

It will cause a linking error because the jump assembly code were using j,
however it may be not enough to jump to the destination. We have to change it
with pseudo instruction b. In that way, assembler will generate a set of safe
assembly codes to make sure the destination is able to jump.

Toolchain:
https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.1.0/x86_64-gcc-8.1.0-nolibc-nds32le-linux.tar.gz

Command:
PATH=/NOBACKUP/atcsqa06/greentime/os/toolchain-kernel.org/gcc-8.1.0-nolibc/nds32le-linux/bin:$PATH ARCH=nds32 CROSS_COMPILE=nds32le-linux- make allyesconfig
PATH=/NOBACKUP/atcsqa06/greentime/os/toolchain-kernel.org/gcc-8.1.0-nolibc/nds32le-linux/bin:$PATH ARCH=nds32 CROSS_COMPILE=nds32le-linux- make -j8

  MODPOST vmlinux.o
WARNING: EXPORT symbol "copy_page" [vmlinux] version generation failed, symbol will not be versioned.
WARNING: EXPORT symbol "clear_page" [vmlinux] version generation failed, symbol will not be versioned.
nds32le-linux-ld: kernel/futex.o:(.fixup+0x4): relocation truncated to fit: R_NDS32_25_PCREL_RELA against `.text'
nds32le-linux-ld: kernel/futex.o:(.fixup+0xaa): relocation truncated to fit: R_NDS32_25_PCREL_RELA against `.text'
nds32le-linux-ld: kernel/futex.o:(.fixup+0xb0): relocation truncated to fit: R_NDS32_25_PCREL_RELA against `.text'
nds32le-linux-ld: kernel/futex.o:(.fixup+0xb6): relocation truncated to fit: R_NDS32_25_PCREL_RELA against `.text'
nds32le-linux-ld: kernel/futex.o:(.fixup+0xbc): relocation truncated to fit: R_NDS32_25_PCREL_RELA against `.text'
nds32le-linux-ld: kernel/futex.o:(.fixup+0xc4): relocation truncated to fit: R_NDS32_25_PCREL_RELA against `.text'
Makefile:1010: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1

Signed-off-by: Greentime Hu <greentime@andestech.com>
2018-07-05 16:13:47 +08:00
..
Kbuild Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-06-04 20:27:54 -07:00
assembler.h
barrier.h nds32: Atomic operations 2018-02-22 10:44:32 +08:00
bitfield.h nds32: To fix a cache inconsistency issue by setting correct cacheability of NTC 2018-05-23 13:26:22 +08:00
cache.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
cache_info.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
cacheflush.h nds32: To implement these icache invalidation APIs since nds32 cores don't snoop 2018-07-03 11:11:56 +08:00
current.h nds32: Process management 2018-02-22 10:44:32 +08:00
delay.h nds32: Miscellaneous header files 2018-02-22 10:44:34 +08:00
elf.h nds32: ELF definitions 2018-02-22 10:44:33 +08:00
fixmap.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
futex.h nds32: fix build error "relocation truncated to fit: R_NDS32_25_PCREL_RELA" when 2018-07-05 16:13:47 +08:00
highmem.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
io.h nds32: Fix the unknown type u8 issue. 2018-05-23 13:26:21 +08:00
irqflags.h nds32: IRQ handling 2018-02-22 10:44:32 +08:00
l2_cache.h nds32: L2 cache support 2018-02-22 10:44:34 +08:00
linkage.h nds32: Miscellaneous header files 2018-02-22 10:44:34 +08:00
memory.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
mmu.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
mmu_context.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
module.h nds32: Loadable modules 2018-02-22 10:44:34 +08:00
nds32.h
page.h nds32: Fix the symbols undefined issue by exporting them. 2018-05-23 13:26:20 +08:00
pgalloc.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
pgtable.h nds32: Fix drivers/gpu/drm/udl/udl_fb.c building error by defining PAGE_SHARED 2018-05-23 13:26:20 +08:00
proc-fns.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
processor.h nds32: Process management 2018-02-22 10:44:32 +08:00
ptrace.h nds32: Exception handling 2018-02-22 10:44:31 +08:00
shmparam.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
string.h nds32: Library functions 2018-02-22 10:44:33 +08:00
swab.h nds32: Library functions 2018-02-22 10:44:33 +08:00
syscall.h nds32: System calls handling 2018-02-22 10:44:33 +08:00
syscalls.h nds32: System calls handling 2018-02-22 10:44:33 +08:00
thread_info.h nds32: Process management 2018-02-22 10:44:32 +08:00
tlb.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
tlbflush.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
uaccess.h nds32: Library functions 2018-02-22 10:44:33 +08:00
unistd.h nds32: System calls handling 2018-02-22 10:44:33 +08:00
vdso.h nds32: VDSO support 2018-02-22 10:44:33 +08:00
vdso_datapage.h nds32: VDSO support 2018-02-22 10:44:33 +08:00
vdso_timer_info.h nds32: VDSO support 2018-02-22 10:44:33 +08:00