why the asymmetry in VX_CRT{BEGIN,END}_SPEC?
Olivier Hainque
hainque@adacore.com
Wed Dec 8 08:04:08 GMT 2021
Hi Rasmus,
> On 7 Dec 2021, at 16:09, Rasmus Villemoes <rv@rasmusvillemoes.dk> wrote:
>
> 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.
I don't think there's a reason today and the patchset
I'm working on uses %s consistently.
Cheers,
Olivier
More information about the Gcc
mailing list