1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

strict kobj signatures: linker_if fixes

in symtab_get method symtab parameter is made constant as this reflects
actual intention and usage of the method

Reviewed by:	imp, current@
Approved by:	jhb (mentor)
This commit is contained in:
Andriy Gapon 2009-06-11 17:05:45 +00:00
parent 08d43f8e62
commit e76f11f441
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194016
3 changed files with 6 additions and 5 deletions

View File

@ -129,7 +129,7 @@ static int
ksyms_size_permod(linker_file_t lf, void *arg)
{
struct tsizes *ts;
Elf_Sym *symtab;
const Elf_Sym *symtab;
caddr_t strtab;
long syms;
@ -170,7 +170,8 @@ static int
ksyms_add(linker_file_t lf, void *arg)
{
struct toffsets *to;
Elf_Sym *symtab, *symp;
const Elf_Sym *symtab;
Elf_Sym *symp;
caddr_t strtab;
long symsz;
size_t strsz, numsyms;

View File

@ -139,7 +139,7 @@ static int link_elf_each_function_nameval(linker_file_t,
linker_function_nameval_callback_t,
void *);
static void link_elf_reloc_local(linker_file_t);
static long link_elf_symtab_get(linker_file_t, Elf_Sym **);
static long link_elf_symtab_get(linker_file_t, const Elf_Sym **);
static long link_elf_strtab_get(linker_file_t, caddr_t *);
static Elf_Addr elf_obj_lookup(linker_file_t lf, Elf_Size symidx, int deps);
@ -1291,7 +1291,7 @@ link_elf_reloc_local(linker_file_t lf)
}
static long
link_elf_symtab_get(linker_file_t lf, Elf_Sym **symtab)
link_elf_symtab_get(linker_file_t lf, const Elf_Sym **symtab)
{
elf_file_t ef = (elf_file_t)lf;

View File

@ -110,7 +110,7 @@ METHOD int ctf_get {
#
METHOD long symtab_get {
linker_file_t file;
Elf_Sym **symtab;
const Elf_Sym **symtab;
};
#