1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Insurance: cause a proper symbol lookup failure for symbol entries that

reference unknown sections.. rather than returning a small value.
This commit is contained in:
Peter Wemm 2004-06-15 01:33:39 +00:00
parent 2aab594f92
commit add21e178f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130506

View File

@ -878,6 +878,8 @@ elf_obj_lookup(linker_file_t lf, Elf_Word symidx, int deps)
break;
}
}
if (ret == 0)
return (0);
return ret + sym->st_value;
}