Thanks for the reply.
I did remove --enable-libmudflap option from the build script and
followed following steps for libmudflap configuration:


Why on earth would you do this?

I created a separate build folder and from there

a) [libmudflap source path]/configure --target=sh-elf --prefix=[My
  prefix folder path]
b) make
c) make install

By this, libmudflap.a got created but for i386-redhat-linux target.

No, at the toplevel (just like your normal build of the compiler and target libraries):

configure --enable-languages=c --disable-multilib --enable-libmudflap --target=sh-elf ; make -j8 all-gcc all-target

and you'll get this:

configure: error: none of the known symbol names works
make: *** [configure-target-libmudflap] Error 1

which means that libmudflap needs to be ported to sh-elf.

-eric

Reply via email to