diff options
author | Roland McGrath <roland@redhat.com> | 2009-10-05 17:36:43 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2009-10-05 17:36:43 +0000 |
commit | fcaf740c16004e36e5bdb7152ae49d25805d9dea (patch) | |
tree | 82367c77356c38df5ed8fb6f51bcd66e9f3bbd30 /elfutils/libdwfl/relocate.c | |
parent | 5a4cef9b6c2899944308fdb8f78559fc0df766cc (diff) | |
download | elfutils-196fbacf6ba3d672b7b9c93261503eaeebcee3c1.tar.gz |
0.143-10.143-1
- Update to 0.143
- libdw: Various convenience functions for individual attributes now use
dwarf_attr_integrate to look up indirect inherited attributes.
Location expression handling now supports DW_OP_implicit_value.
- libdwfl: Support automatic decompression of files in XZ format,
and of Linux kernel images made with bzip2 or LZMA
(as well as gzip).
Diffstat (limited to 'elfutils/libdwfl/relocate.c')
-rw-r--r-- | elfutils/libdwfl/relocate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/elfutils/libdwfl/relocate.c b/elfutils/libdwfl/relocate.c index 2c0f3010..a31fe152 100644 --- a/elfutils/libdwfl/relocate.c +++ b/elfutils/libdwfl/relocate.c @@ -72,7 +72,7 @@ __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf, size_t *shstrndx, address and update the section header. */ if (*shstrndx == SHN_UNDEF - && unlikely (elf_getshstrndx (elf, shstrndx) < 0)) + && unlikely (elf_getshdrstrndx (elf, shstrndx) < 0)) return DWFL_E_LIBELF; const char *name = elf_strptr (elf, *shstrndx, refshdr->sh_name); @@ -582,7 +582,7 @@ __libdwfl_relocate (Dwfl_Module *mod, Elf *debugfile, bool debug) return DWFL_E_LIBELF; size_t d_shstrndx; - if (elf_getshstrndx (debugfile, &d_shstrndx) < 0) + if (elf_getshdrstrndx (debugfile, &d_shstrndx) < 0) return DWFL_E_LIBELF; RELOC_SYMTAB_CACHE (reloc_symtab); @@ -626,7 +626,7 @@ __libdwfl_relocate_section (Dwfl_Module *mod, Elf *relocated, RELOC_SYMTAB_CACHE (reloc_symtab); size_t shstrndx; - if (elf_getshstrndx (relocated, &shstrndx) < 0) + if (elf_getshdrstrndx (relocated, &shstrndx) < 0) return DWFL_E_LIBELF; return (__libdwfl_module_getebl (mod) |