Date: Mon, 12 Nov 2007 00:42:15 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 128954 for review Message-ID: <200711120042.lAC0gFeX096956@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=128954 Change 128954 by jb@jb_freebsd1 on 2007/11/12 00:41:37 Remove a function that isn't needed any more. An equivalent function was added to -current after this one was prototyped. Affected files ... .. //depot/projects/dtrace/src/sys/kern/kern_linker.c#23 edit .. //depot/projects/dtrace/src/sys/sys/linker.h#15 edit Differences ... ==== //depot/projects/dtrace/src/sys/kern/kern_linker.c#23 (text+ko) ==== @@ -701,33 +701,6 @@ } caddr_t -linker_file_lookup_value(const char *name) -{ - linker_file_t lf; - c_linker_sym_t sym; - linker_symval_t symval; - int locked; - - symval.value = 0; - - locked = KLD_LOCKED(); - if (!locked) - KLD_LOCK(); - - TAILQ_FOREACH(lf, &linker_files, link) { - if (LINKER_LOOKUP_SYMBOL(lf, name, &sym) == 0 && - LINKER_SYMBOL_VALUES(lf, sym, &symval) == 0) - break; - } - - if (!locked) - KLD_UNLOCK(); - - return (symval.value); -} - - -caddr_t linker_file_lookup_symbol(linker_file_t file, const char *name, int deps) { caddr_t sym; ==== //depot/projects/dtrace/src/sys/sys/linker.h#15 (text+ko) ==== @@ -148,11 +148,6 @@ int _deps); /* - * Lookup a symbol in all files, returning it's value. - */ -caddr_t linker_file_lookup_value(const char* _name); - -/* * Lookup a linker set in a file. Return pointers to the first entry, * last + 1, and count of entries. Use: for (p = start; p < stop; p++) {} * void *start is really: "struct yoursetmember ***start;"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711120042.lAC0gFeX096956>
