diff mbox

Use arclinux_nps linker emulation for nps400

Message ID 098ECE41A0A6114BB2A07F1EC238DE89661BE306@de02wembxa.internal.synopsys.com
State New
Headers show

Commit Message

Claudiu Zissulescu Dec. 12, 2016, 7:18 p.m. UTC
It looks sane to me, please apply (ask Andrew to do it for you)

//Claudiu

Comments

Graham Markall Dec. 12, 2016, 8:44 p.m. UTC | #1
Hi Claudiu,

On 12/12/16 19:18, Claudiu Zissulescu wrote:
> It looks sane to me, please apply (ask Andrew to do it for you)
> 
> //Claudiu

Many thanks for the quick review. I'll ask Andrew to do it once the
binutils patch is approved and applied.


Best regards,
Graham.
Andrew Burgess Jan. 20, 2017, 1:41 p.m. UTC | #2
* Graham Markall <graham.markall@embecosm.com> [2016-12-12 20:44:17 +0000]:

> Hi Claudiu,
> 
> On 12/12/16 19:18, Claudiu Zissulescu wrote:
> > It looks sane to me, please apply (ask Andrew to do it for you)
> > 
> > //Claudiu
> 
> Many thanks for the quick review. I'll ask Andrew to do it once the
> binutils patch is approved and applied.

I've pushed this as revision 244712.  This should only effect arc/nps
(so -mcpu=nps400).

Thanks,
Andrew
diff mbox

Patch

diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
index f9512c4..188249a 100644
--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -114,16 +114,17 @@  extern const char *arc_cpu_to_as (int argc, const char **argv);
 /* Note that the default is to link against dynamic libraries, if they are
    available.  Override with -static.  */
 #define LINK_SPEC "%{h*} \
-                  %{static:-Bstatic} \
-                  %{symbolic:-Bsymbolic} \
-                  %{rdynamic:-export-dynamic}\
-                  -dynamic-linker /lib/ld-uClibc.so.0 \
-                  -X %{mbig-endian:-EB} \
-                  %{EB} %{EL} \
-                  %{marclinux*} \
-                  %{!marclinux*: %{pg|p|profile:-marclinux_prof;: -marclinux}} \
-                  %{!z:-z max-page-size=0x2000 -z common-page-size=0x2000} \
-                  %{shared:-shared}"
+   %{static:-Bstatic} \
+   %{symbolic:-Bsymbolic} \
+   %{rdynamic:-export-dynamic}\
+   -dynamic-linker /lib/ld-uClibc.so.0 \
+   -X %{mbig-endian:-EB} \
+   %{EB} %{EL} \
+   %{marclinux*} \
+   %{!marclinux*: %{pg|p|profile:-marclinux_prof; mcpu=nps400:-marclinux_nps; \
+   :-marclinux}} \
+   %{!z:-z max-page-size=0x2000 -z common-page-size=0x2000} \
+   %{shared:-shared}"
 #else
 #define LINK_SPEC "%{mbig-endian:-EB} %{EB} %{EL}\
   %{pg|p:-marcelf_prof;mA7|mARC700|mcpu=arc700|mcpu=ARC700: -marcelf}"