<div dir="auto"><div>That's a good idea. That way based on the multilib variant, Newlib would be compiled using fPIC, yes?<div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">If that sounds right, I'll look into that first. Not familiar with the GCC source yet, but it should be doable.</div><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 4, 2018, 3:43 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Amaan,<br>
<br>
can't you add a new multilib variant which includes -fPIC to the GCC configuration for RTEMS?<br>
</blockquote></div></div></div>