diff --git a/src/libvxWorks/Makefile.Vx b/src/libvxWorks/Makefile.Vx index 400f723c9..ffcb9f610 100644 --- a/src/libvxWorks/Makefile.Vx +++ b/src/libvxWorks/Makefile.Vx @@ -4,6 +4,7 @@ include $(TOP)/config/CONFIG_BASE SRCS.c = ../iocLogClient.c ../veclist.c ../ldpp.c LIBOBJS = veclist.o iocLogClient.o ldpp.o +LIBOBJS_mips = symFindByNameMips.o LIBNAME = vxComLib SCRIPTS = vxldscript.MRI diff --git a/src/libvxWorks/symFindByNameMips.c b/src/libvxWorks/symFindByNameMips.c new file mode 100644 index 000000000..cbbcd8eef --- /dev/null +++ b/src/libvxWorks/symFindByNameMips.c @@ -0,0 +1,24 @@ +/* + * This file is included in to change the VxWorks function symFindByName(). + * On the MIPS processor, all symbols do not have the prepended underscore. + * Here we redefine symFindByName to look at the second character of the + * name string. + * + * 01a,08apr97,bdg created. + * 02a,03apr97,npr changed from mips.h into symFindByNameMips.c + */ + +#ifdef symFindByName +#undef symFindByName +#endif + +#include "vxWorks.h" +#include "symLib.h" + +STATUS symFindByNameMips( SYMTAB_ID symTblId, + char *name, + char **pvalue, + SYM_TYPE *pType ) +{ + return symFindByName(symTblId, (name+1), pvalue, pType ); +}