Unbreak build. It seems that mips and amd64 still pull in link_elf.c, so

we need to have elf_cpu_parse_dynamic() everywhere after all to avoid
an undefined symbol.
This commit is contained in:
Brandon Bergren 2019-12-24 16:52:10 +00:00
parent fea73412a0
commit 38f69a619e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356058
3 changed files with 14 additions and 3 deletions

View File

@ -329,3 +329,10 @@ elf_cpu_unload_file(linker_file_t lf __unused)
return (0);
}
int
elf_cpu_parse_dynamic(linker_file_t lf __unused, Elf_Dyn *dynamic __unused)
{
return (0);
}

View File

@ -501,3 +501,10 @@ elf_cpu_unload_file(linker_file_t lf __unused)
return (0);
}
int
elf_cpu_parse_dynamic(linker_file_t lf __unused, Elf_Dyn *dynamic __unused)
{
return (0);
}

View File

@ -305,10 +305,7 @@ int linker_ctf_get(linker_file_t, linker_ctf_t *);
int elf_cpu_load_file(linker_file_t);
int elf_cpu_unload_file(linker_file_t);
/* amd64 and mips use objects instead of shared libraries */
#if !defined(__amd64__) && !defined(__mips__)
int elf_cpu_parse_dynamic(linker_file_t, Elf_Dyn *);
#endif
/* values for type */
#define ELF_RELOC_REL 1