Hi,
        GNU_USER_DYNAMIC_LINKER is defined in linux.h, it will expand to 
GLIBC_DYNAMIC_LINKER when configured with glibc

> 在 2018年11月15日,下午6:30,Richard Biener <richard.guent...@gmail.com> 写道:
> 
> On Thu, Nov 15, 2018 at 7:02 AM 瞿仙淼 <xianmiao...@c-sky.com> wrote:
>> 
>> Hi,
>>        I have submitted a patch to update dynamic linker'name
>> 
>> 
>> Index: gcc/ChangeLog
>> ===================================================================
>> --- gcc/ChangeLog       (revision 266171)
>> +++ gcc/ChangeLog       (working copy)
>> @@ -1,3 +1,9 @@
>> +2018-11-15  Xianmiao Qu  <xianmiao...@c-sky.com>
>> +
>> +       * config/csky/csky-linux-elf.h (LINUX_DYNAMIC_LINKER): Remove.
>> +       (GLIBC_DYNAMIC_LINKER): Define.
>> +       (LINUX_TARGET_LINK_SPEC): Update the dynamic linker's name.
>> +
>> 2018-11-15  Bin Cheng  <bin.ch...@linux.alibaba.com>
>> 
>>        PR tree-optimization/84648
>> Index: gcc/config/csky/csky-linux-elf.h
>> ===================================================================
>> --- gcc/config/csky/csky-linux-elf.h    (revision 266171)
>> +++ gcc/config/csky/csky-linux-elf.h    (working copy)
>> @@ -61,7 +61,7 @@
>>   %{mvdsp:-mvdsp}              \
>>   "
>> 
>> -#define LINUX_DYNAMIC_LINKER  "/lib/ld.so.1"
>> +#define GLIBC_DYNAMIC_LINKER 
>> "/lib/ld-linux-cskyv2%{mhard-float:-hf}%{mbig-endian:-be}.so.1"
>> 
>> #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v}            \
>>    %{b}                                                                \
>> @@ -70,7 +70,7 @@
>>    %{symbolic:-Bsymbolic}                                      \
>>    %{!static:                                                  \
>>      %{rdynamic:-export-dynamic}                               \
>> -     %{!shared:-dynamic-linker " LINUX_DYNAMIC_LINKER "}}      \
>> +     %{!shared:-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}   \
> 
> ^^^ GNU_USER_DYNAMIC_LINKER vs. GLIBC_DYNAMIC_LINKER
> 
>>    -X                                                          \
>>    %{mbig-endian:-EB} %{mlittle-endian:-EL}                    \
>>    %{EB:-EB} %{EL:-EL}"
>> Index: libgcc/ChangeLog
>> ===================================================================
>> --- libgcc/ChangeLog    (revision 266171)
>> +++ libgcc/ChangeLog    (working copy)
>> @@ -1,3 +1,7 @@
>> +2018-11-15  Xianmiao Qu  <xianmiao...@c-sky.com>
>> +
>> +       * config/csky/linux-unwind.h: Fix coding style.
>> +
>> 2018-11-13  Xianmiao Qu  <xianmiao...@c-sky.com>
>> 
>>        * config/csky/linux-unwind.h (_sig_ucontext_t): Remove.
>> Index: libgcc/config/csky/linux-unwind.h
>> ===================================================================
>> --- libgcc/config/csky/linux-unwind.h   (revision 266171)
>> +++ libgcc/config/csky/linux-unwind.h   (working copy)
>> @@ -25,10 +25,8 @@
>> 
>> #ifndef inhibit_libc
>> 
>> -/*
>> - * Do code reading to identify a signal frame, and set the frame state data
>> - * appropriately.  See unwind-dw2.c for the structs.
>> - */
>> +/* Do code reading to identify a signal frame, and set the frame state data
>> +   appropriately.  See unwind-dw2.c for the structs.  */
>> 
>> #include <signal.h>
>> #include <asm/unistd.h>

Reply via email to