why the asymmetry in VX_CRT{BEGIN,END}_SPEC?

Rasmus Villemoes rv@rasmusvillemoes.dk
Tue Dec 7 15:09:21 GMT 2021


Hi Olivier

One thing I've been meaning to ask: Is there a reason VX_CRTBEGIN_SPEC
and VX_CRTEND_SPEC are given as

#define VX_CRTBEGIN_SPEC "vx_crtbegin.o%s"
#define VX_CRTEND_SPEC "-l:vx_crtend.o"

so for vx_crtbegin.o, it is gcc itself which expands the full path to
the vx_crtbegin.o file, while for vx_crtend.o, the linker is instructed
to go looking for it.

Rasmus


More information about the Gcc mailing list