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

Oleg Endo <olegendo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2025-07-09

--- Comment #1 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to Rich Felker from comment #0)
> Created attachment 57904 [details]
> rough fix
> 
> [...]
> 
> The attached patch fixes it but is probably not idiomatic.
> 
> Note that there is a related binutils bug that prevents the fix from having
> an effect on the test program when linked:
> 
> https://sourceware.org/bugzilla/show_bug.cgi?id=31619
> 
> With both applied, the linked output is correct too.

I don't know much/enough about the details here, so I guess it's OK if it
improves the FDPIC usability.  Are there any potential side effects of the
patch for non-FDPIC?  If so would need to test it on non-FDPIC first.

Reply via email to