[PATCH v3 1/4] bfd,ld,dlltool: Emit delay-load import data into its own section
Jan Beulich
jbeulich@suse.com
Tue Jun 10 05:58:39 GMT 2025
On 06.06.2025 19:25, Jeremy Drake wrote:
> On Fri, 6 Jun 2025, Jan Beulich wrote:
>
>> On 06.05.2025 08:50, Jeremy Drake wrote:
>>> From: LIU Hao <lh_mouse@126.com>
>>>
>> I was meaning to commit this today, but obviously(?) ran it through the testsuite
>> first. This introduces regressions for 3 testcases for both Cygwin and MinGW. Did
>> you not observe these, or did you simply not run the testsuite for either of
>> these (pretty common when it comes to PE/COFF) targets?
>>
>> The failures also appear to point out a problem with the code changes themselves,
>> i.e. it's not just the testcase expectations that need adjustment. For
>> ld-pe/secrel_64.d and ld-pe/secidx_64.d I don't see why suddenly a .didat section
>> would be present in the output. Neither test looks to be using delayload
>> functionality. For ld-pe/tlssec64.d the issue is likely the same, even if it
>> expresses itself differently in the expected vs actual output delta.
>
> Was this with just this patch, or the whole series? The extraneous .didat
> section was one of the reasons I worked on followup patches to this first
> patch by LIU Hao.
This was with just this patch. Neither building nor testing should break in the
middle of a series.
>> Overall this also reminds me of another shortcoming of the series: There's no
>> new testcase being added, making sure the new functionality won#t regress.
>
> AFAIK, there are no tests for delayload functionality. Anything beyond
> simple tweaking of existing tests is pretty well outside my expertise, and
> I'd need a bit of hand-holding if you want me to add all-new tests for it.
I didn't check closely, but I very much hope there's a "normal" import data
test somewhere. I'd expect that to be clone-able for delayed imports.
Jan
More information about the Binutils
mailing list