ld: don't chance overrunning PE .reloc section content

Alan Modra amodra@gmail.com
Sat Mar 13 10:15:15 GMT 2021


On Thu, Mar 11, 2021 at 05:50:40PM +0100, Jan Beulich via Binutils wrote:
> 	* pe-dll.c (generate_reloc): Drop padding to reloc_s->size.

OK.

> Sadly the origin of (and hence possible reason for) this piece of code
> can't be determined from git.

You can look past ^252b5132c7.  git log will show you commits before
that one.  Choosing a commit before all the "import" and "initial
creation" ones will give you the early history,
  eg. git blame 1730ec6b18 ld/pe-dll.c
Not that "* pe-dll.c: New file; direct support for PE DLLs" helps much
here.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list