diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-12 19:48:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-12 19:48:41 +0000 |
commit | b950aab1f54fc458dcad8528a35c7e8aa71f85eb (patch) | |
tree | 231bbadc1feaeb1fde062a05d7a68a6ec170b534 /usr.sbin/crunchgen | |
parent | fed747f0095049924a6fc499fe69a9503892fda8 (diff) |
add missing protos
Diffstat (limited to 'usr.sbin/crunchgen')
-rw-r--r-- | usr.sbin/crunchgen/crunchide.c | 4 | ||||
-rw-r--r-- | usr.sbin/crunchgen/elf_hide.c | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/usr.sbin/crunchgen/crunchide.c b/usr.sbin/crunchgen/crunchide.c index 6f170cd3afd..8accf7298a5 100644 --- a/usr.sbin/crunchgen/crunchide.c +++ b/usr.sbin/crunchgen/crunchide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crunchide.c,v 1.6 2013/10/14 16:58:05 deraadt Exp $ */ +/* $OpenBSD: crunchide.c,v 1.7 2013/11/12 19:48:40 deraadt Exp $ */ /* * Copyright (c) 1994 University of Maryland @@ -79,6 +79,8 @@ void hide_syms(char *); #ifdef _NLIST_DO_ELF void elf_hide(int, char *); #endif +int in_keep_list(char *symbol); +int crunchide_main(int argc, char *argv[]); extern char *__progname; extern int elf_mangle; diff --git a/usr.sbin/crunchgen/elf_hide.c b/usr.sbin/crunchgen/elf_hide.c index 75dddb89f34..b6e553bcf0d 100644 --- a/usr.sbin/crunchgen/elf_hide.c +++ b/usr.sbin/crunchgen/elf_hide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elf_hide.c,v 1.6 2010/07/20 02:08:15 deraadt Exp $ */ +/* $OpenBSD: elf_hide.c,v 1.7 2013/11/12 19:48:40 deraadt Exp $ */ /* * Copyright (c) 1997 Dale Rahn. @@ -45,22 +45,25 @@ extern int elf_mangle; void load_strtab(Elf_Ehdr * pehdr, char *pexe); -void dump_strtab(); +void dump_strtab(void); char *get_str(int indx); void load_symtab(Elf_Ehdr * pehdr, char *pexe); -void dump_symtab(); +void dump_symtab(Elf_Shdr * symsect, Elf_Sym * symtab, int symtabsize); +void fprint_str(FILE * channel, int indx); void load_shstr_tab(Elf_Ehdr * pehdr, char *pexe); char *get_shstr(int indx); void fprint_shstr(FILE * channel, int indx); -void hide_sym(); +void hide_sym(Elf_Ehdr * ehdr, Elf_Shdr * symsect, + Elf_Sym * symtab, int symtabsize, int symtabsecnum); void reorder_syms(Elf_Ehdr * ehdr, Elf_Shdr * symsect, Elf_Sym * symtab, int symtabsize, int symtabsecnum); typedef long Symmap; void renum_reloc_syms(Elf_Ehdr * ehdr, Symmap * symmap, int symtabsecnum); +void elf_hide(int pfile, char *p); char *pexe; |