https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108315

--- Comment #13 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to Alexander Monakov from comment #10)
> (In reply to Rui Ueyama from comment #9)
> > I'm the maintainer of the mold linker. I didn't implement that POWER10 ABI
> > because I didn't have an access to a POWER10 machine and therefore couldn't
> > verify the correctness of my implementation.
> 
> Thanks for the info. It might be better to explicitly diagnose the
> '.localentry 1' case and error out instead of producing an executable that
> will continue to run with wrong r2 after the mislinked call returns.

Yes, exactly.  Silently giving any handling to reserved values will never end
well; just a warning would help a lot already (making it non-silent :-) )

FWIW, calling this "POWER10 ABI" is very inexact; it is just part of the ELFv2
ABI (a reserved value in older ABI versions, and with a specific meaning in
newer versions), not only for Power10.  Of course it was created to make code
that uses pcrel addressing faster, but :-)

Reply via email to