SUSPICIOUS CODE

Michael Matz matz@suse.de
Thu Jul 13 13:54:57 GMT 2023


Hello,

On Wed, 12 Jul 2023, jacob navia wrote:

> This change was introduced on Aug 18th 2011 by Mr Alan Modra with the 
> rather terse comment: "(get_frag_for_reloc): New function. ».

Nope.  The third loop (the one you're asking about) wasn't added with the 
above, but rather by commit 740bdc67c057 (also by Alan).  It contains 
testcase and justification.  (Hint: as last resort, and only then, a reloc 
is associated with a frag at the _end_ of section. frags can be 
var-length).

The testsuite is run (as usual with many GNU projects) with 'make check' 
after the appropriate configure and make steps.


Ciao,
Michael.


More information about the Binutils mailing list