Add aliases for elf_getshnum and elf_getshstrndx.
authorUlrich Drepper <drepper@redhat.com>
Sat, 13 Jun 2009 22:55:42 +0000 (15:55 -0700)
committerUlrich Drepper <drepper@redhat.com>
Sat, 13 Jun 2009 22:55:42 +0000 (15:55 -0700)
commitf189493154d0041deced00e6a99cc5426dc9d260
tree6c55e4b0b571c49d01e1b355e52f72b6d5c069eb
parentb47d290a36509e26e145f6d3eb2e6590ec6c554d
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).
24 files changed:
NEWS
configure.ac
libdwfl/ChangeLog
libdwfl/derelocate.c
libdwfl/dwfl_module_getdwarf.c
libdwfl/relocate.c
libelf/ChangeLog
libelf/Makefile.am
libelf/elf32_checksum.c
libelf/elf32_getshdr.c
libelf/elf_getshdrnum.c [moved from libelf/elf_getshnum.c with 94% similarity]
libelf/elf_getshdrstrndx.c [moved from libelf/elf_getshstrndx.c with 97% similarity]
libelf/libelf.h
libelf/libelf.map
libelf/libelfP.h
src/ChangeLog
src/ld.h
src/ldgeneric.c
src/nm.c
src/objdump.c
src/readelf.c
src/size.c
src/strip.c
src/unstrip.c