Building PPC EABI without "-mno-eabi -mrelocatable-lib"?
Thu Jul 7 03:37:00 GMT 2005
On Wed, Jul 06, 2005 at 05:30:57PM -0400, Darin Johnson wrote:
> Is there an easy way to build for "powerpc-*-eabi" so that the
> "-mno-eabi -mrelocatable-lib" options are not enabled? Ie,
> this is for a statically linked and unrelocatable system, and
> I don't want a large GOT2 table.
For no PIC, no GOT, in powerpc-linux (which also produces eabi), I added
-mno-relocatable-lib to newlib/configure.host. (And if you find the
offending -mno-eabi in there, you may want to zap it. :-)
> I can see how to patch libgloss and newlib to do this, but I'd have
> to redo this for every release. Having non-relocatable embedded
> PPC systems is very common, so I suspect there may be a config
> option that I'm missing.
No, you're right, the config option worked for my embedded system.
More information about the Newlib