Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/kern/kern_linker.c 62860 2000-07-09 23:58:56Z bp $
---
> * $FreeBSD: head/sys/kern/kern_linker.c 64143 2000-08-02 21:08:53Z peter $
958c958
< char *modname;
---
> char *modname, *nmodname;
967,968c967,968
< struct mod_metadata *mp;
< int i;
---
> struct mod_metadata *mp, *nmp;
> int i, j;
1045a1046,1055
> for (j = 0; j < deps->ls_length; j++) {
> nmp = linker_reloc_ptr(lf, deps->ls_items[j]);
> if (nmp->md_type != MDT_VERSION)
> continue;
> nmodname = linker_reloc_ptr(lf, nmp->md_cval);
> if (strcmp(modname, nmodname) == 0)
> break;
> }
> if (j < deps->ls_length) /* it's a self reference */
> continue;