dbghelp: Use generic image_find_section in elf_check_alternate.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-03-16 16:05:11 +01:00 committed by Alexandre Julliard
parent e9961039ec
commit a3e1c7fa02
1 changed files with 2 additions and 2 deletions

View File

@ -1139,7 +1139,7 @@ static BOOL elf_check_alternate(struct image_file_map* fmap, const struct module
struct image_section_map buildid_sect, debuglink_sect; struct image_section_map buildid_sect, debuglink_sect;
/* if present, add the .gnu_debuglink file as an alternate to current one */ /* if present, add the .gnu_debuglink file as an alternate to current one */
if (elf_find_section(fmap, ".note.gnu.build-id", SHT_NULL, &buildid_sect)) if (image_find_section(fmap, ".note.gnu.build-id", &buildid_sect))
{ {
const uint32_t* note; const uint32_t* note;
@ -1156,7 +1156,7 @@ static BOOL elf_check_alternate(struct image_file_map* fmap, const struct module
image_unmap_section(&buildid_sect); image_unmap_section(&buildid_sect);
} }
/* if present, add the .gnu_debuglink file as an alternate to current one */ /* if present, add the .gnu_debuglink file as an alternate to current one */
if (!ret && elf_find_section(fmap, ".gnu_debuglink", SHT_NULL, &debuglink_sect)) if (!ret && image_find_section(fmap, ".gnu_debuglink", &debuglink_sect))
{ {
const char* dbg_link; const char* dbg_link;