[PATCH v2 7/7] Use elf_getshdrstrndx() instead of elf_getshstrndx()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 16 Jul 2013 14:32:09 +0200
Daniel Kiper <daniel.kiper at oracle.com> wrote:

> Use elf_getshdrstrndx() instead of elf_getshstrndx()
> because later is marked as deprecated.
> 
> Signed-off-by: Daniel Kiper <daniel.kiper at oracle.com>

Good, I'll merge this patch into v1.5.5.


Thanks
Atsushi Kumagai

> ---
>  dwarf_info.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/dwarf_info.c b/dwarf_info.c
> index 85c116e..c5752c9 100644
> --- a/dwarf_info.c
> +++ b/dwarf_info.c
> @@ -944,7 +944,7 @@ get_debug_info(void)
>  	elfd = dwarf_info.elfd;
>  	dwarfd = dwarf_info.dwarfd;
>  
> -	if (elf_getshstrndx(elfd, &shstrndx) < 0) {
> +	if (elf_getshdrstrndx(elfd, &shstrndx) < 0) {
>  		ERRMSG("Can't get the section index of the string table.\n");
>  		goto out;
>  	}
> -- 
> 1.7.10.4
> 



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux