Topic: Building lib on cortex-M4

I'm looking at wolfssl as a replacement for the openssl, for an embedded Cortex-M4.

The cpu is NXP LPC4337, and the toolchain is arm-uclinuxeabi-

I get a bunch of bad relocs at compile time:

...
/home/bosse/lucasimage/tools/arm-2010q1/arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_ABS32 is not supported for PIC
/home/bosse/lucasimage/tools/arm-2010q1/arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_ABS32 is not supported for PIC
/home/bosse/lucasimage/tools/arm-2010q1/arm-uclinuxeabi/bin/elf2flt: error: 547 bad relocs

Thankful for any help,

/Bo

Share

Re: Building lib on cortex-M4

Hi bomellberg,

To view configure help use "./configure --help"

We have a setting there for enabling / disabling pic in the event autoconf needs some assistance in cross-compilation.
By default we attempt to use both:

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
                          both]

Could you try using:

 --without-pic

and let us know your results?

Kind Regards,

Kaleb