GCC generating symbols prefixed with "call_"
Jim Wilson
jimw@sifive.com
Thu Mar 26 23:02:48 GMT 2020
On Wed, Mar 25, 2020 at 6:41 PM William Tambe via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
> Any idea what is causing GCC to generate the following symbols prefixed
> with "call_" ?
>
> call___do_global_ctors_aux
> call___do_global_dtors_aux
> call_frame_dummy
find . -type f | xargs grep do_global_ctors_aux
on a linux machine in the gcc source tree will show you all uses of
do_global_ctors_aux, there are only about a hundred of them, and most
of them are obviously not relevant. You can ignore the ia64, pa, and
ChangeLog file hits. That gives a couple dozen, of which the most
interesting one is this one
./libgcc/crtstuff.c:CRT_CALL_STATIC_FUNCTION
(__LIBGCC_INIT_SECTION_ASM_OP__, __do_global_ctors_aux)
Jim
More information about the Gcc-help
mailing list