[PATCH v2 3/4] vxworks: enable use of .init_array/.fini_array for cdtors

Rasmus Villemoes rv@rasmusvillemoes.dk
Mon Aug 13 08:25:00 GMT 2018


On 2018-08-10 17:59, Olivier Hainque wrote:
> Hello Rasmus,
> 
>> On 28 Jun 2018, at 10:43, Rasmus Villemoes <rv@rasmusvillemoes.dk> wrote:
>>
>> Assume that if the user passed --enable-initfini-array when building
>> gcc, the rest of the toolchain (including the link spec and linker
>> script) is set up appropriately.
>> 2018-06-04  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
>>
>> gcc/
>> 	config/vxworks.c: Set targetm.have_ctors_dtors if HAVE_INITFINI_ARRAY_SUPPORT.
>>  config/vxworks.h: Set SUPPORTS_INIT_PRIORITY if HAVE_INITFINI_ARRAY_SUPPORT.
> 
> Ok, modulo ChangeLog reformatting:
> 
> 	* config/vxworks.c: Set targetm.have_ctors_dtors if
> 	HAVE_INITFINI_ARRAY_SUPPORT.
> 	* config/vxworks.h: Set SUPPORTS_INIT_PRIORITY if
> 	HAVE_INITFINI_ARRAY_SUPPORT.

Thanks for spotting that. I have a script that fixes the whitespace
issue automatically, but it doesn't catch missing leading * in entries.

Do you want me to send an updated and rebased version of these patches
(including changelog fixups)?

Thanks,
Rasmus



More information about the Gcc-patches mailing list