Olivier Hainque <hain...@adacore.com> wrote:

Hello again,

On 01 Apr 2020, at 19:48, Olivier Hainque <hain...@adacore.com> wrote:

          * gcc.c (LINK_COMMAND_SPEC): Handle -r like -nostdlib.

Would it be possible to revert to the previous behavior
and document it ?

Or maybe allow it to be controllable by the target ports ?

perhaps I’m missing something here, but it is quite possible for a target
to override and provide a customised version of LINK_COMMAND_SPEC.

Darwin does this: see config/darwin.h

So, AFAIU, a port owner has the last call on how such things are handled
since the port header is typically included after the generic ones.

Or provide something to bring back the flexibility we had
if we really believe the default should change ? (I'm not
convinced)

I realize we could resort to -Wl,-r instead and I was
convinced there are contexts where we don't have the opportunity
to control the arguments as freely as we'd like, which
would actually restrict our adjustment options.


cheers
Iain


Reply via email to