|
@@ -72,13 +72,15 @@ int module_finalize(const Elf_Ehdr *hdr,
|
|
do_feature_fixups(powerpc_firmware_features,
|
|
do_feature_fixups(powerpc_firmware_features,
|
|
(void *)sect->sh_addr,
|
|
(void *)sect->sh_addr,
|
|
(void *)sect->sh_addr + sect->sh_size);
|
|
(void *)sect->sh_addr + sect->sh_size);
|
|
|
|
+#endif /* CONFIG_PPC64 */
|
|
|
|
|
|
|
|
+#ifdef CONFIG_PPC_BARRIER_NOSPEC
|
|
sect = find_section(hdr, sechdrs, "__spec_barrier_fixup");
|
|
sect = find_section(hdr, sechdrs, "__spec_barrier_fixup");
|
|
if (sect != NULL)
|
|
if (sect != NULL)
|
|
do_barrier_nospec_fixups_range(barrier_nospec_enabled,
|
|
do_barrier_nospec_fixups_range(barrier_nospec_enabled,
|
|
(void *)sect->sh_addr,
|
|
(void *)sect->sh_addr,
|
|
(void *)sect->sh_addr + sect->sh_size);
|
|
(void *)sect->sh_addr + sect->sh_size);
|
|
-#endif
|
|
|
|
|
|
+#endif /* CONFIG_PPC_BARRIER_NOSPEC */
|
|
|
|
|
|
sect = find_section(hdr, sechdrs, "__lwsync_fixup");
|
|
sect = find_section(hdr, sechdrs, "__lwsync_fixup");
|
|
if (sect != NULL)
|
|
if (sect != NULL)
|