diff options
author | peter <peter@FreeBSD.org> | 2004-06-15 01:33:39 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-06-15 01:33:39 +0000 |
commit | 99c1fd6c774c9ab31185fcf3f8bdc3a13a543558 (patch) | |
tree | bb7e8b3dcb518a9b117f52329d0078a5309ca683 /sys/kern | |
parent | 749e9ea6a2f2284b102c67a789c217b10227552a (diff) | |
download | FreeBSD-src-99c1fd6c774c9ab31185fcf3f8bdc3a13a543558.zip FreeBSD-src-99c1fd6c774c9ab31185fcf3f8bdc3a13a543558.tar.gz |
Insurance: cause a proper symbol lookup failure for symbol entries that
reference unknown sections.. rather than returning a small value.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/link_elf_obj.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/link_elf_obj.c b/sys/kern/link_elf_obj.c index c150fdf..0c6c4f9 100644 --- a/sys/kern/link_elf_obj.c +++ b/sys/kern/link_elf_obj.c @@ -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; } |