From 858a800f5dc51382a295d174da8b3eff71b5215e Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Thu, 11 Jul 2013 21:43:11 +0000 Subject: [PATCH] * 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 --- avrdude/ChangeLog | 5 +++++ avrdude/fileio.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/avrdude/ChangeLog b/avrdude/ChangeLog index cf17d512..7109e5a4 100644 --- a/avrdude/ChangeLog +++ b/avrdude/ChangeLog @@ -1,3 +1,8 @@ +2013-07-11 Joerg Wunsch + + * fileio.c (elf2b): replace elf_getshstrndx() by + elf_getshdrstrndx() as the former one is deprecated + 2013-06-19 Rene Liebscher use bitbanging on ftdi mpsse when wrong pins are used diff --git a/avrdude/fileio.c b/avrdude/fileio.c index a5696209..c5dd7b90 100644 --- a/avrdude/fileio.c +++ b/avrdude/fileio.c @@ -944,7 +944,7 @@ static int elf2b(char * infile, FILE * inf, } size_t sndx; - if (elf_getshstrndx(e, &sndx) != 0) { + if (elf_getshdrstrndx(e, &sndx) != 0) { fprintf(stderr, "%s: ERROR: Error obtaining section name string table: %s\n", progname, elf_errmsg(-1));