libgcc: vxcrtstuff.c: make ctor/dtor functions static
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Wed, 27 Oct 2021 10:21:49 +0000 (12:21 +0200)
committerRasmus Villemoes <rv@rasmusvillemoes.dk>
Sat, 11 Dec 2021 13:33:29 +0000 (14:33 +0100)
commit365c7c6ac5400d88816e602f7f9aa12268ba53e3
treedceae592339926d08d9a0cd8e62eb967e99b8515
parent8b2885dee57e6e91b6265248f1de88fd53d61ce4
libgcc: vxcrtstuff.c: make ctor/dtor functions static

When the translation unit itself creates pointers to the ctors/dtors
in a specific section handled by the linker (whether .init_array or
.ctors.*), there's no reason for the functions to have external
linkage. That ends up polluting the symbol table in the running
kernel.

This makes vxcrtstuff.c on par with the generic crtstuff.c which also
defines e.g. frame_dummy and __do_global_dtors_aux static.

libgcc/
* config/vxcrtstuff.c: Make constructor and destructor
functions static when possible.
libgcc/config/vxcrtstuff.c