Ticket #11144: 0001-ARM-gcc-make-LINK_SPEC-match-our-other-platforms.patch

File 0001-ARM-gcc-make-LINK_SPEC-match-our-other-platforms.patch, 976 bytes (added by ithamar, 10 years ago)

Fix linking of libgcc_s.so in stag0 gcc compilation

  • gcc/gcc/config/arm/haiku.h

    From 6f9a8fa02b59666640980bb622980fa13f5a2508 Mon Sep 17 00:00:00 2001
    From: "Ithamar R. Adema" <ithamar@upgrade-android.com>
    Date: Thu, 21 Aug 2014 16:36:18 +0200
    Subject: [PATCH] ARM/gcc: make LINK_SPEC match our other platforms.
    
    It looks like shared/nostart was not properly handled. These changes
    were copied from the x86_64 specs.
    ---
     gcc/gcc/config/arm/haiku.h | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/gcc/gcc/config/arm/haiku.h b/gcc/gcc/config/arm/haiku.h
    index c2670f9..392a462 100644
    a b  
    7575/* If ELF is the default format, we should not use /lib/elf.  */
    7676
    7777#undef  LINK_SPEC
    78 #define LINK_SPEC "%{!o*:-o %b} -m armelf -shared -no-undefined %{nostart:-e 0} \
     78#define LINK_SPEC "%{!o*:-o %b} -m armelf -shared %{nostart:-e 0} %{shared:-e 0} %{!shared: %{!nostart: -no-undefined}}\
    7979  %{mbig-endian:-EB} %{mlittle-endian:-EL} -X"
    8080