|
@@ -1295,6 +1295,7 @@ static int machine__set_modules_path(struct machine *machine)
|
|
|
return map_groups__set_modules_path_dir(&machine->kmaps, modules_path, 0);
|
|
return map_groups__set_modules_path_dir(&machine->kmaps, modules_path, 0);
|
|
|
}
|
|
}
|
|
|
int __weak arch__fix_module_text_start(u64 *start __maybe_unused,
|
|
int __weak arch__fix_module_text_start(u64 *start __maybe_unused,
|
|
|
|
|
+ u64 *size __maybe_unused,
|
|
|
const char *name __maybe_unused)
|
|
const char *name __maybe_unused)
|
|
|
{
|
|
{
|
|
|
return 0;
|
|
return 0;
|
|
@@ -1306,7 +1307,7 @@ static int machine__create_module(void *arg, const char *name, u64 start,
|
|
|
struct machine *machine = arg;
|
|
struct machine *machine = arg;
|
|
|
struct map *map;
|
|
struct map *map;
|
|
|
|
|
|
|
|
- if (arch__fix_module_text_start(&start, name) < 0)
|
|
|
|
|
|
|
+ if (arch__fix_module_text_start(&start, &size, name) < 0)
|
|
|
return -1;
|
|
return -1;
|
|
|
|
|
|
|
|
map = machine__findnew_module_map(machine, start, name);
|
|
map = machine__findnew_module_map(machine, start, name);
|