diff options
author | avg <avg@FreeBSD.org> | 2009-06-11 17:05:45 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2009-06-11 17:05:45 +0000 |
commit | fb53877c40785622630ba3c164b143f542bbe47c (patch) | |
tree | 2b9bd43a13e2aab8d960f4f4d191d074fbdfc6d4 | |
parent | 024c4eba43a8a34a3560a0b7c3940af183d2af02 (diff) | |
download | FreeBSD-src-fb53877c40785622630ba3c164b143f542bbe47c.zip FreeBSD-src-fb53877c40785622630ba3c164b143f542bbe47c.tar.gz |
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)
-rw-r--r-- | sys/dev/ksyms/ksyms.c | 5 | ||||
-rw-r--r-- | sys/kern/link_elf_obj.c | 4 | ||||
-rw-r--r-- | sys/kern/linker_if.m | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/ksyms/ksyms.c b/sys/dev/ksyms/ksyms.c index cb0f967..fc368c7 100644 --- a/sys/dev/ksyms/ksyms.c +++ b/sys/dev/ksyms/ksyms.c @@ -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; diff --git a/sys/kern/link_elf_obj.c b/sys/kern/link_elf_obj.c index 707c580..2adbe19 100644 --- a/sys/kern/link_elf_obj.c +++ b/sys/kern/link_elf_obj.c @@ -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; diff --git a/sys/kern/linker_if.m b/sys/kern/linker_if.m index 379bc0e..3df592c 100644 --- a/sys/kern/linker_if.m +++ b/sys/kern/linker_if.m @@ -110,7 +110,7 @@ METHOD int ctf_get { # METHOD long symtab_get { linker_file_t file; - Elf_Sym **symtab; + const Elf_Sym **symtab; }; # |