Open sylane opened 6 years ago
Hmm, depends what etp_XXX is for. It might also be part of a build that uses threads or supports smp which we don´t do for default at the moment.
They are defined in erts/emulator/beam/erl_ini.c
, with the entry point of the beam... I don't see why we wouldn't have it.
And looking at the generated object symbols, it contains a erl_init
one...
RTEMS uses a method where the compiler puts every function into its own section and then at the linking phase garbage collects sections that are not referenced. This could cause functions to be removed if they are not referenced from the program.
I was trying to debug using openocd and using the gdb commands provided by OTP:
erts/etc/unix/etp-commands
.The commands require a set of symbols to be defined (the
etp_XXX
defined inerts/emulator/beam/erl_init.c
) but they are not. I wonder if the issue is due to the compiler optimizing them out or any special cross-build issue.