Re: ctor/dtor priorities ignored when function is pre-declared

2021-10-29 Thread Richard Biener via Gcc
On Thu, Oct 28, 2021 at 1:26 PM Rasmus Villemoes wrote: > > Hi > > I was wondering why the vx_crtbegin.o file had a .init_array section and > not a .init_array.00101, when the function is defined with > __attribute__((constructor (101))) (see libgcc/config/vxcrtstuff.c). > > After a lot of diggin

ctor/dtor priorities ignored when function is pre-declared

2021-10-28 Thread Rasmus Villemoes
Hi I was wondering why the vx_crtbegin.o file had a .init_array section and not a .init_array.00101, when the function is defined with __attribute__((constructor (101))) (see libgcc/config/vxcrtstuff.c). After a lot of digging, including making sure that EH_CTOR_ATTRIBUTE actually gets defined as