mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
8b5d644bb3
This includes binutils, gcc, gdb and uClibc-ng. Latest release of ARC gcc (as of today it is "arc-2015.06") is based on upstream gcc 4.8.4. Sources are available on GitHub, see: https://github.com/foss-for-synopsys-dwc-arc-processors/gcc Latest release of ARC binutils (as of today it is "arc-2015.06") is based on upstream binutils 2.23. Sources are available on GitHub, see: https://github.com/foss-for-synopsys-dwc-arc-processors/binutils-gdb/releases/tag/arc-2015.06 Latest release of ARC GDB (as of today this is "arc-2015.06-gdb") is based on upstream gdb 7.9.1. Sources are available on GitHub, see: https://github.com/foss-for-synopsys-dwc-arc-processors/binutils-gdb/releases/tag/arc-2015.06-gdb Note that for binutils and gdb that come from unified git repository (which is the case for upstream binutils/gdb today) we need to disable building of gdb in binutils and binutils in gdb hence in binutils: ------>8------ --disable-sim --disable-gdb ------>8------ and in gdb: ------>8------ --disable-binutils --disable-ld --disable-gas ------>8------ Also in gdb we disable sim because if the following breakage while building with it: ------------>8------------ /usr/bin/env bash ./../common/genmloop.sh -shell /usr/bin/env bash \ -mono -fast -pbb -switch sem5-switch.c \ -cpu a5f -infile ./mloop5.in \ -outfile-suffix 5 unknown option: bash Makefile:699: recipe for target 'stamp-5mloop' failed make[7]: *** [stamp-5mloop] Error 1 ------------>8------------ Cc: Felix Fietkau <nbd@openwrt.org> Cc: John Crispin <blogic@openwrt.org> Cc: Jonas Gorski <jogo@openwrt.org> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> SVN-Revision: 47438
29 lines
942 B
Diff
29 lines
942 B
Diff
--- a/gcc/calls.c
|
|
+++ b/gcc/calls.c
|
|
@@ -176,6 +176,12 @@ prepare_call_address (tree fndecl, rtx f
|
|
&& targetm.small_register_classes_for_mode_p (FUNCTION_MODE))
|
|
? force_not_mem (memory_address (FUNCTION_MODE, funexp))
|
|
: memory_address (FUNCTION_MODE, funexp));
|
|
+ else if (flag_pic && !flag_plt && fndecl
|
|
+ && TREE_CODE (fndecl) == FUNCTION_DECL
|
|
+ && !targetm.binds_local_p (fndecl))
|
|
+ {
|
|
+ funexp = force_reg (Pmode, funexp);
|
|
+ }
|
|
else if (! sibcallp)
|
|
{
|
|
#ifndef NO_FUNCTION_CSE
|
|
--- a/gcc/common.opt
|
|
+++ b/gcc/common.opt
|
|
@@ -1617,6 +1617,10 @@ fpie
|
|
Common Report Var(flag_pie,1) Negative(fPIC)
|
|
Generate position-independent code for executables if possible (small mode)
|
|
|
|
+fplt
|
|
+Common Report Var(flag_plt) Init(1)
|
|
+Use PLT for PIC calls (-fno-plt: load the address from GOT at call site)
|
|
+
|
|
fplugin=
|
|
Common Joined RejectNegative Var(common_deferred_options) Defer
|
|
Specify a plugin to load
|