diff options
author | Helge Deller <deller@gmx.de> | 2017-07-09 22:50:40 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2017-07-23 21:00:28 +0200 |
commit | 6cd819e8e978b361ae558056a9e79fd30e6acb0d (patch) | |
tree | 598d666063680bf28fab886991e504d73d33ea28 /arch/parisc | |
parent | 5bc64bd246ca00e0bb0b7137afaf586f2f66a911 (diff) | |
download | op-kernel-dev-6cd819e8e978b361ae558056a9e79fd30e6acb0d.zip op-kernel-dev-6cd819e8e978b361ae558056a9e79fd30e6acb0d.tar.gz |
parisc: Merge millicode routines via linker script
When compiling the 4.13-rc kernel I got those linker errors:
libgcc2.c:(.text+0x110): relocation truncated to fit: R_PARISC_PCREL22F against symbol `$$divU'
defined in .text.div section in /usr/lib/gcc/hppa64-linux-gnu/4.9.2/libgcc.a(_divU.o)
hppa64-linux-gnu-ld: /usr/lib/gcc/hppa64-linux-gnu/4.9.2/libgcc.a(_moddi3.o)(.text+0x174): cannot reach $$divU
Avoid such errors by bundling the millicode routines in the linker script.
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/kernel/vmlinux.lds.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/parisc/kernel/vmlinux.lds.S b/arch/parisc/kernel/vmlinux.lds.S index 3d6ef1b..ffe2cbf 100644 --- a/arch/parisc/kernel/vmlinux.lds.S +++ b/arch/parisc/kernel/vmlinux.lds.S @@ -78,6 +78,8 @@ SECTIONS *(.text.sys_exit) *(.text.do_sigaltstack) *(.text.do_fork) + *(.text.div) + *($$*) /* millicode routines */ *(.text.*) *(.fixup) *(.lock.text) /* out-of-line lock text */ |