Skip to content

Commit 09274ae

Browse files
committed
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fixes from Catalin Marinas: - Fix the loading of modules built with binutils-2.35. This version produces writable and executable .text.ftrace_trampoline section which is rejected by the kernel. - Remove the exporting of cpu_logical_map() as the Tegra driver has now been fixed and no longer uses this function. * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64/module: set trampoline section flags regardless of CONFIG_DYNAMIC_FTRACE arm64: Remove exporting cpu_logical_map symbol
2 parents 16bf121 + e0328fe commit 09274ae

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

arch/arm64/kernel/module-plts.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
305305
mod->arch.core.plt_shndx = i;
306306
else if (!strcmp(secstrings + sechdrs[i].sh_name, ".init.plt"))
307307
mod->arch.init.plt_shndx = i;
308-
else if (IS_ENABLED(CONFIG_DYNAMIC_FTRACE) &&
309-
!strcmp(secstrings + sechdrs[i].sh_name,
308+
else if (!strcmp(secstrings + sechdrs[i].sh_name,
310309
".text.ftrace_trampoline"))
311310
tramp = sechdrs + i;
312311
else if (sechdrs[i].sh_type == SHT_SYMTAB)

arch/arm64/kernel/setup.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ u64 cpu_logical_map(int cpu)
280280
{
281281
return __cpu_logical_map[cpu];
282282
}
283-
EXPORT_SYMBOL_GPL(cpu_logical_map);
284283

285284
void __init __no_sanitize_address setup_arch(char **cmdline_p)
286285
{

0 commit comments

Comments
 (0)