diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-06-13 15:55:42 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-06-13 15:55:42 -0700 |
commit | f189493154d0041deced00e6a99cc5426dc9d260 (patch) | |
tree | 6c55e4b0b571c49d01e1b355e52f72b6d5c069eb /libdwfl/derelocate.c | |
parent | b47d290a36509e26e145f6d3eb2e6590ec6c554d (diff) | |
download | elfutils-f189493154d0041deced00e6a99cc5426dc9d260.tar.gz |
Add aliases for elf_getshnum and elf_getshstrndx.
Sun in their implementation messed up the semantics of these functions.
To get back to source code compatibility they asked for a solution.
We simply add aliases for the two affected functions, named
elf_getshdrnum and elf_getshdrstrndx. The semantics remains the
same. Users of the old interfaces receive a warning for now. In
future we might make it impossible to link programs which request
the old interfaces (binary compatibility will of course be maintained).
Diffstat (limited to 'libdwfl/derelocate.c')
-rw-r--r-- | libdwfl/derelocate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdwfl/derelocate.c b/libdwfl/derelocate.c index c300f84b..56ba25af 100644 --- a/libdwfl/derelocate.c +++ b/libdwfl/derelocate.c @@ -94,7 +94,7 @@ cache_sections (Dwfl_Module *mod) size_t nrefs = 0; size_t shstrndx; - if (unlikely (elf_getshstrndx (mod->main.elf, &shstrndx) < 0)) + if (unlikely (elf_getshdrstrndx (mod->main.elf, &shstrndx) < 0)) { elf_error: __libdwfl_seterrno (DWFL_E_LIBELF); |