[PATCH 3/3] ld: Cleanup sframe_decoder_init_func_bfdinfo use of cookie->rel
Jens Remus
jremus@linux.ibm.com
Tue Feb 25 15:44:29 GMT 2025
On 25.02.2025 15:04, Jan Beulich wrote:
> 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);
Makes sense.
> 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.
Ok.
Regards,
Jens
--
Jens Remus
Linux on Z Development (D3303)
+49-7031-16-1128 Office
jremus@de.ibm.com
IBM
IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Böblingen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/
More information about the Binutils
mailing list