Nov 4, 2016 at 7:55 AM, lei wang wrote:
>>
>> In fact, I just want to find a practical way to make the crt work.
>> Currently, I did the following configure in my port:
>>
>> include "elfos.h" in tm.h
>> define HAS_INIT_SECTION
>> undefine
chine with newlib support. Seems
I fall into an spurious configure for compiling crtstuff.c. Could you
give me some guide to lead me back to common configuration of this?
Thanks.
Lei
2016-11-04 10:33 GMT-04:00 Ian Lance Taylor :
> On Thu, Nov 3, 2016 at 7:20 PM, Lei Wang wrote:
>> The
The brief structure of libgcc/crtstuff.c is as follows:
#ifdef CRT_BEGIN
…
#elif defined(CRT_END)
...
# ifdef OBJECT_FORMAT_ELF
…
# else
static void
__do_global_ctors_aux (void)/* prologue goes in .text section */
{
asm (__LIBGCC_INIT_SECTION_ASM_OP__);
DO_GLOBAL_CTORS_BODY;
atexit (_