mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
Handle printing information about PE format files which have 0 as the value of the HInt Table in the import tables structure.
PR binutils/21546 * peXXigen.c (pe_print_idata): Use the address of the first thunk if the hint address is zero.
This commit is contained in:

committed by
Nick Clifton

parent
5c8ed6a4a1
commit
9949827bea
@ -1,3 +1,9 @@
|
|||||||
|
2017-06-06 Daniel Bonniot de Ruisselet <bonniot@gmail.com>
|
||||||
|
|
||||||
|
PR binutils/21546
|
||||||
|
* peXXigen.c (pe_print_idata): Use the address of the first thunk
|
||||||
|
if the hint address is zero.
|
||||||
|
|
||||||
2017-06-06 James Clarke <jrtc27@jrtc27.com>
|
2017-06-06 James Clarke <jrtc27@jrtc27.com>
|
||||||
|
|
||||||
PR ld/19579
|
PR ld/19579
|
||||||
|
@ -1432,6 +1432,11 @@ pe_print_idata (bfd * abfd, void * vfile)
|
|||||||
bfd_size_type maxlen = (char *)(data + datasize) - dll - 1;
|
bfd_size_type maxlen = (char *)(data + datasize) - dll - 1;
|
||||||
fprintf (file, _("\n\tDLL Name: %.*s\n"), (int) maxlen, dll);
|
fprintf (file, _("\n\tDLL Name: %.*s\n"), (int) maxlen, dll);
|
||||||
|
|
||||||
|
/* PR 21546: When the Hint Address is zero,
|
||||||
|
we try the First Thunk instead. */
|
||||||
|
if (hint_addr == 0)
|
||||||
|
hint_addr = first_thunk;
|
||||||
|
|
||||||
if (hint_addr != 0)
|
if (hint_addr != 0)
|
||||||
{
|
{
|
||||||
bfd_byte *ft_data;
|
bfd_byte *ft_data;
|
||||||
|
Reference in New Issue
Block a user