* fileio.c (elf2b): replace elf_getshstrndx() by

elf_getshdrstrndx() as the former one is deprecated



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@1187 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2013-07-11 21:43:11 +00:00
parent a8117f20d5
commit 858a800f5d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-07-11 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
* fileio.c (elf2b): replace elf_getshstrndx() by
elf_getshdrstrndx() as the former one is deprecated
2013-06-19 Rene Liebscher <R.Liebscher@gmx.de> 2013-06-19 Rene Liebscher <R.Liebscher@gmx.de>
use bitbanging on ftdi mpsse when wrong pins are used use bitbanging on ftdi mpsse when wrong pins are used

View File

@ -944,7 +944,7 @@ static int elf2b(char * infile, FILE * inf,
} }
size_t sndx; size_t sndx;
if (elf_getshstrndx(e, &sndx) != 0) { if (elf_getshdrstrndx(e, &sndx) != 0) {
fprintf(stderr, fprintf(stderr,
"%s: ERROR: Error obtaining section name string table: %s\n", "%s: ERROR: Error obtaining section name string table: %s\n",
progname, elf_errmsg(-1)); progname, elf_errmsg(-1));