https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64633

            Bug ID: 64633
           Summary: Can't build LibSSP for Mipsel need to be compile with
                    -fPIC
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peron.clem at gmail dot com

Created attachment 34466
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34466&action=edit
Config.log of GCC

Hi,

The objects of libssp aren't build with the -fPIC flag and i got an error at
link time when gcc try to create libssp.so.

.libs/ssp.o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used
when making a shared object; recompile with -fPIC

My script that call configure and make GCC.

My GCC version is 4.9.2, my host is 

# ) GCC stage2
mkdir -p obj/gcc-final
pushd obj/gcc-final
${SRCDIR}/${GCC}/configure                              \
    --target=${TARGET}                                  \
    --with-arch=mips1                                   \
    --with-float=soft                                   \
    --prefix=${DESTDIR}                                 \
    --disable-multilib                                  \
    --disable-nls                                       \
    --disable-static                                    \
    --enable-languages=c,c++                            \
    --enable-__cxa_atexit                               \
    --enable-nofmult                                    \
    --enable-poison-system-directories                  \
    --with-pkgversion=Withings                          \
    --enable-threads=posix                              \
    --with-gmp=${LIBDIR}                                \
    --with-mpc=${LIBDIR}                                \
    --with-mpfr=${LIBDIR}                               \
    --with-sysroot=${SYSROOT}
make ${MAKEJ}
make install
popd

Do you need more information ?? I Attach the config.log.

Thanks for your help.

Reply via email to