Ralf Corsepius writes: > So, my questions actually were aiming at > > * whether > "gcc ... -nostdlib -r" > and > "gcc ... -nostdlib -Wl,-r" > are equivalent > > * if the fact that "gcc -r" appears to work, can be exploited or whether > this is a "random accident" and/or intentionally undocumented feature, > which may go away at any time.
Right and Ian has already answered this. I just wanted to add that AFAIC the most portable way to specify a partial link is still through the gcc driver. (Whether you use -Wl,-r or -r depends on your belief if this switch would ever be used for something else in GCC.) Adam