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

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Georg-Johann Lay from comment #4)
> (In reply to H.J. Lu from comment #2)
> > Dup.
> > 
> > *** This bug has been marked as a duplicate of bug 98146 ***
> 
> ??? Confused.
> 
> Attribute retain is still ignored on functions, even though supported by gas.
> 
> I gave a test case above, and it still doesn't add the "R" flag.  Can you
> please explain.

As explained in PR 98146, .init_array/.fini_array support is needed for
SHF_GNU_RETAIN.  Does your target support .init_array/.fini_array section?

Reply via email to