[PATCH 3/3] ld: Cleanup sframe_decoder_init_func_bfdinfo use of cookie->rel

Jan Beulich jbeulich@suse.com
Tue Feb 25 14:04:04 GMT 2025


On 25.02.2025 14:20, Andreas Schwab wrote:
> How about replacing the two assertions (the one inside the loop and the
> one after the loop) with a single assertion before the loop:
> 
>   BFD_ASSERT (cookie->rels + fde_count == cookie->relend);

Maybe. The I'd like cookie to be pointer-to-const, though. If we went
that route, the assertion after the loop should then also be dropped
imo.

Jan


More information about the Binutils mailing list