Shared Library constructor in XCode 16.4 and 26 linker/runtime

GCC's shared library constructor technique has ceased working with the tool chain provided with XCode 16.4 and XCode 26. This is the GCC attribute:

__attribute__((constructor))

Example use:

void aConstructor(void) __attribute__((constructor));

void aConstructor(void) 
{ 
    printf("Called aConstructor\n");
}

In our case aConstructor() was not called.

Shared Library constructor in XCode 16.4 and 26 linker/runtime
 
 
Q