diff options
author | Daniel Bonniot de Ruisselet <bonniot@gmail.com> | 2017-06-06 15:06:02 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-06-06 15:06:02 +0100 |
commit | 9949827bea788753c29b7bb503d6d5dda6ea21ff (patch) | |
tree | f22a57b3851134ff7714b392ffa6b043c98de5e5 /bfd/peXXigen.c | |
parent | 5c8ed6a4a1d197658086e9175f820227ebffebec (diff) | |
download | binutils-gdb-9949827bea788753c29b7bb503d6d5dda6ea21ff.tar.gz |
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.
Diffstat (limited to 'bfd/peXXigen.c')
-rw-r--r-- | bfd/peXXigen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index 27a75b3ebdf..a18e0b26792 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -1432,6 +1432,11 @@ pe_print_idata (bfd * abfd, void * vfile) bfd_size_type maxlen = (char *)(data + datasize) - dll - 1; 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) { bfd_byte *ft_data; |