[PATCH] bfd: fill in PE load config directory entry.

LIU Hao lh_mouse@126.com
Mon Mar 10 06:33:02 GMT 2025


在 2025-3-10 13:51, Jeremy Drake 写道:
> Hmm, I noticed when I sent the patch that the address included
> h1->root.u.def.value but I didn't include that when figuring out where to
> read the size from.  Could you try
> if (bfd_get_section_contents (abfd, h1->root.u.def.section->output_section,
>        sz, hl->root.u.def.value + h1->root.u.def.section->output_offset, 4))
              ^^
I think you meant `h1` here? In that case it works as expected.

> 
> ?  Or maybe someone with knowledge of these APIs can shed some light on
> what should be passed here.


-- 
Best regards,
LIU Hao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20250310/96e931c6/attachment.sig>


More information about the Binutils mailing list