This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [PowerPC/RTEMS] Add 64-bit support using ELFv2 ABI


On Thu, Jul 27, 2017 at 07:28:30AM +0200, Sebastian Huber wrote:
> >This deletes eabi.h and I don't see you add all its definitions to
> >rtems.h directly (NAME__MAIN etc.)  Is this on purpose?
> 
> Yes, I always wondered why GCC added the __eabi() call to main() out of 
> thin air. In general, there is no main() function in RTEMS. Instead, you 
> can statically configure initialization threads. We call __eabi() in the 
> low-level startup code, e.g.
> 
> https://git.rtems.org/rtems/tree/c/src/lib/libbsp/powerpc/qoriq/start/start.S#n144

Heh, I always thought the EABI must require it, but it seems to be a GCC
invention.

Patch looks fine to me then.  You can approve it yourself of course :-)


Segher


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]