[PATCH][DbgHelp] Recognize DT_GNU_HASH

Thomas Fitzsimmons fitzsim at redhat.com
Tue Dec 5 02:31:00 CST 2006


Thomas Fitzsimmons wrote:
> This patch fixes #6830.
> 
> Tom
> 
> 2006-12-05  Thomas Fitzsimmons  <fitzsim at redhat.com>
> 
>     * dlls/dbghelp/elf_module.c (is_dt_flag_valid): Recognize
>     DT_GNU_HASH.
> 
> 
> ------------------------------------------------------------------------
> 
> diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
> index 85494ca..a7fa2f8 100644
> --- a/dlls/dbghelp/elf_module.c
> +++ b/dlls/dbghelp/elf_module.c
> @@ -1041,6 +1041,9 @@ #endif
>  #ifndef DT_EXTRANUM
>  #define DT_EXTRANUM 0
>  #endif
> +#ifndef DT_GNU_HASH
> +#define DT_GNU_HASH 0x6ffffef5
> +#endif
>      return (d_tag >= 0 && d_tag < DT_NUM + DT_PROCNUM + DT_EXTRANUM)
>  #if defined(DT_LOOS) && defined(DT_HIOS)
>          || (d_tag >= DT_LOOS && d_tag < DT_HIOS)
> @@ -1048,6 +1051,9 @@ #endif
>  #if defined(DT_LOPROC) && defined(DT_HIPROC)
>          || (d_tag >= DT_LOPROC && d_tag < DT_HIPROC)
>  #endif
> +#if defined(DT_GNU_HASH)
> +        || (d_tag == DT_GNU_HASH)
> +#endif
>          ;
>  }

Ugh, no need for the extra "if defined" check, of course.

Tom

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-dbghelp-gnu-hash.patch
Type: text/x-patch
Size: 509 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061205/71624fcb/wine-dbghelp-gnu-hash.bin


More information about the wine-patches mailing list