[GSoC - x86_64 BSP] Using fPIC to compile RTEMS as a shared library

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jun 4 10:44:10 UTC 2018



----- Am 4. Jun 2018 um 12:20 schrieb Amaan Cheval amaan.cheval at gmail.com:

> That's a good idea. That way based on the multilib variant, Newlib would be
> compiled using fPIC, yes?

Yes.

> 
> Then I could simply figure out how to solve the crtbegin and crtend dilemma
> (which I believe should be easier), and use those to have a dynamic/shared
> RTEMS kernel + user application.

These files will be compiled with -fPIC as well.

> 
> If that sounds right, I'll look into that first. Not familiar with the GCC
> source yet, but it should be doable.

Sorry, I have no idea how the x86_64 configuration of GCC works for RTEMS.

> 
> 
> On Mon, Jun 4, 2018, 3:43 PM Sebastian Huber <
> sebastian.huber at embedded-brains.de> wrote:
> 
>> Hello Amaan,
>>
>> can't you add a new multilib variant which includes -fPIC to the GCC
>> configuration for RTEMS?


More information about the devel mailing list