This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, csky] Update dynamic linker'name
- From: 瞿仙淼 <xianmiao_qu at c-sky dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, yunhai_shang <yunhai_shang at c-sky dot com>, Han Mao <han_mao at c-sky dot com>, Sandra Loosemore <sandra at codesourcery dot com>
- Date: Thu, 15 Nov 2018 23:31:40 +0800
- Subject: Re: [PATCH, csky] Update dynamic linker'name
- References: <9957B58D-25C2-4BAD-A959-6F302AF3A587@c-sky.com> <CAFiYyc0kesr8MG-DAQSa1vz5PBcmGUGrWOKSv1WSMjbift=WQA@mail.gmail.com>
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.guenther@gmail.com> 写道:
>
> On Thu, Nov 15, 2018 at 7:02 AM 瞿仙淼 <xianmiao_qu@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_qu@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.cheng@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_qu@c-sky.com>
>> +
>> + * config/csky/linux-unwind.h: Fix coding style.
>> +
>> 2018-11-13 Xianmiao Qu <xianmiao_qu@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>