[Bug ld/23750] Linker does not support R_ARM_GOT_BREL with -fdpic

2018-10-10 Thread clyon at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23750

--- Comment #5 from Christophe Lyon  ---
(In reply to Dmitrii from comment #4)
> Thanks for your answer.
> 
> I have checkouted fdpic gcc branch:
> https://git.linaro.org/people/christophe.lyon/gcc.git/log/?h=fdpic-v3-after-
> rebase
> And I have building issues.
> 
> I have tried to use ./configure line from fdpic-manifest from github:
> ./configure --prefix=~/gcc-fdpic/install
> --target=arm-v7-linux-uclinuxfdpiceabi --without-headers --with-newlib
> --disable-shared --disable-threads --disable-libssp --disable-libgomp
> --disable-libmudflap --enable-languages=c --disable-libquadmath --d   
> isable-multilib --without-cloog --without-ppl --disable-nls
> 
> It caused an error:
> error: FDPIC mode is not supported on architectures older than Armv7

When did you get this error? During GCC build time or when using the resulting
compiler?

> 
> How can I correctly specify arch? (--with-arch=armv7 produces non-working
> compiler).
> 
> Could you, please, provide working ./configure command or tell me where can
> I get any manual?
> 

You should build GCC with armv7 as default architecture (for instance
--with-cpu=cortex-a9 when configuring GCC)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23750] Linker does not support R_ARM_GOT_BREL with -fdpic

2018-10-10 Thread d.rodionov at samsung dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23750

--- Comment #4 from Dmitrii  ---
Thanks for your answer.

I have checkouted fdpic gcc branch:
https://git.linaro.org/people/christophe.lyon/gcc.git/log/?h=fdpic-v3-after-rebase
And I have building issues.

I have tried to use ./configure line from fdpic-manifest from github:
./configure --prefix=~/gcc-fdpic/install --target=arm-v7-linux-uclinuxfdpiceabi
--without-headers --with-newlib --disable-shared --disable-threads
--disable-libssp --disable-libgomp --disable-libmudflap --enable-languages=c
--disable-libquadmath --disable-multilib --without-cloog --without-ppl
--disable-nls

It caused an error:
error: FDPIC mode is not supported on architectures older than Armv7

How can I correctly specify arch? (--with-arch=armv7 produces non-working
compiler).

Could you, please, provide working ./configure command or tell me where can I
get any manual?

Best regards,
Dmitrii Rodionov

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils