PERFORCE change 50157 for review
Peter Wemm
peter at FreeBSD.org
Thu Apr 1 18:08:01 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=50157
Change 50157 by peter at peter_hammer on 2004/04/01 18:07:00
symbols can have a legitimate value of zero.
Affected files ...
.. //depot/projects/hammer/sys/kern/link_elf_obj.c#18 edit
Differences ...
==== //depot/projects/hammer/sys/kern/link_elf_obj.c#18 (text+ko) ====
@@ -875,7 +875,7 @@
*/
if (ELF_ST_BIND(sym->st_info) == STB_LOCAL) {
/* Force lookup failure when we have an insanity. */
- if (sym->st_shndx == SHN_UNDEF || sym->st_value == 0)
+ if (sym->st_shndx == SHN_UNDEF)
return (0);
return ((Elf_Addr)ef->address + sym->st_value);
}
More information about the p4-projects
mailing list