ARM: 8314/1: replace PROCINFO embedded branch with relative offset
This patch replaces the 'branch to setup()' instructions embedded in the PROCINFO structs with the offset to that setup function relative to the base of the struct. This preserves the position independent nature of that field, but uses a data item rather than an instruction. This is mainly done to prevent linker failures on large kernels, where the setup function is out of reach for the branch. Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:

کامیت شده توسط
Russell King

والد
0a6a78b8b3
کامیت
bf35706f3d
@@ -76,7 +76,7 @@ __arm7tdmi_setup:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc, #execinstr
|
||||
.section ".proc.info.init", #alloc
|
||||
|
||||
.macro arm7tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, \
|
||||
extra_hwcaps=0
|
||||
@@ -86,7 +86,7 @@ __\name\()_proc_info:
|
||||
.long \cpu_mask
|
||||
.long 0
|
||||
.long 0
|
||||
b __arm7tdmi_setup
|
||||
initfn __arm7tdmi_setup, __\name\()_proc_info
|
||||
.long cpu_arch_name
|
||||
.long cpu_elf_name
|
||||
.long HWCAP_SWP | HWCAP_26BIT | ( \extra_hwcaps )
|
||||
|
مرجع در شماره جدید
Block a user