Hello Allan,

Thanks for following up.

> On 02 Apr 2020, at 10:37, Allan Sandfeld Jensen <allan.jen...@qt.io> wrote:
> -r is used for relinking. The idea behind the change was to make it directly 
> suitable for that.

In my mind, it was just a means to convey "I will relink this somehow
later on, don't complain if the closure is incomplete", while you control
what goes in the closure or not through means intended for that (-nostdlib,
-nostartfiles).


> It takes object files and relinks them into a new object 
> file. It gives the caller complete control.

It's true that the caller can resort to -Wl if he doesn't
like what -r now does, which is more than before.

> It sounds like you are missing some way to add startfiles? A reverse of 
> -nostartfiles?

Sort of, but I'm not sure this would be a better way
out than using -Wl. 

> But hopefully you can just use the linker directly?

I don't know yet.

> Unless you have LTO 
> enabled object files you dont need the compiler to link.


Part of the issue is all
the scripts, makefiles and IDEs driving operations that might
implicitly or explicitly rely on a behavior which suddenly
changes. Or pieces of documentation here and there.

I'm afraid we might have no other choice but to arrange to
come back to the previous behavior somehow, at least for VxWorks.

I still have at least a few experiments to conduct. 

Olivier

Reply via email to