]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/elfload.c
elf: Improve symbol lookup (optimize, fix for bsd-user)
authorStefan Weil <sw@weilnetz.de>
Thu, 5 Jan 2012 14:39:39 +0000 (15:39 +0100)
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>
Tue, 10 Jan 2012 17:40:09 +0000 (18:40 +0100)
commitc7c530cd3e23219a9be10323ba7876f68d54c107
tree78e52ee094cafd6e4b1c7bc86635d6ccaa72879f
parent563c2bf35cf4a20b504dd371c395d987f67e16d4
elf: Improve symbol lookup (optimize, fix for bsd-user)

Coverity complained about local variable key which was only partially
initiated. Only key.st_value was set. As this was also the only part
of key which was used in function symfind, the code could be optimized
by directly passing a pointer to orig_addr.

In bsd-user/elfload.c, fix ec822001a2f26eef8701194714f6482b6d852de2
was missing. This was a simple replacement of > by >= in symfind, so
I fixed it here without creating an additional patch.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
bsd-user/elfload.c
hw/elf_ops.h
linux-user/elfload.c