Re: [PATCH] objdump: Fix private header ('-p') import table output for pe-aarch64

Jan Beulich <[email protected]>
Newsgroups gmane.comp.gnu.binutils
Message-ID <[email protected]>
On 30.06.2026 21:27, Jon Turney wrote:
> On 26/06/2026 08:06, Jan Beulich wrote:
>> On 19.06.2026 15:43, Jon Turney wrote:
>>> The private header ('-p') import table output for pe-aarch64 (and
>>> probably all other 64-bit arches apart from x86_64) is truncated after the
>>> first import.
>>>
>>> The distinction between the conditional branches here should be between
>>> PE32 (32-bit) and PE32+ (somewhat confusingly, the 64-bit version of the
>>> PE format).
>>>
>>> PE file format specification [1] states under "Import Lookup Table":
>>>
>>> "An import lookup table is an array of 32-bit numbers for PE32 or an
>>> array of 64-bit numbers for PE32+."
>>>
>>> [1] https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#import-lookup-table
>>>
>>> 2026-06-19  Jon Turney  <[email protected]>
>>>
>>> 	* peXXigen.c (pe_print_idata): Fix conditional.
>>
>> Okay, albeit preferably with ...
>>
>>> --- a/bfd/peXXigen.c
>>> +++ b/bfd/peXXigen.c
>>> @@ -1462,7 +1462,7 @@ pe_print_idata (bfd * abfd, void * vfile)
>>>   	    }
>>>   
>>>   	  /* Print HintName vector entries.  */
>>> -#ifdef COFF_WITH_pex64
>>> +#if defined COFF_WITH_pep || defined COFF_WITH_pex64 || defined COFF_WITH_peAArch64 || defined COFF_WITH_peLoongArch64 || defined COFF_WITH_peRiscV64
>>
>> ... this line split for each part to remain within 80 columns (no matter
> 
> I attach a revised patch since I'm not entirely sure of the desired 
> formatting and indentation here.

LGTM.

Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.