qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] sparc-linux-user: Fix missing symbols in .rel/.rela.plt


From: Michael Tokarev
Subject: Re: [Qemu-devel] sparc-linux-user: Fix missing symbols in .rel/.rela.plt sections
Date: Wed, 08 May 2013 11:18:40 +0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/17.0 Icedove/17.0

Ping #2?

06.04.2013 10:08, Michael Tokarev wrote:
> This patch was submitted more than a year ago (at Jan-2012).
> Is it still needed?  If yes, why it hasn't been applied?
> 
> It still applies cleanly to the current git, with the exception
> of s|^|ldscripts/| - sparc.ld moved from the top directory to
> ldscripts/.
> 
> (Ref: http://patchwork.ozlabs.org/patch/135267 )
> 
> Thanks,
> 
> /mjt
> 
> 
> 10.01.2012 11:38, Aurelien Jarno wrote:
>> sparc-linux-user: Fix missing symbols in .rel/.rela.plt sections
>>
>> Fix .rel.plt sections in the output to not only include .rel.plt
>> sections from the input but also the .rel.iplt sections and to define
>> the hidden symbols __rel_iplt_start and __rel_iplt_end around
>> .rel.iplt as otherwise we get undefined references to these when
>> linking statically to a multiarch enabled libc (using STT_GNU_IFUNC).
>>
>> Cc: Blue Swirl <address@hidden>
>> Signed-off-by: Aurelien Jarno <address@hidden>
>>
>> ---
>> sparc.ld |   16 ++++++++++++++--
>>  1 files changed, 14 insertions(+), 2 deletions(-)
>>
>> diff --git a/sparc.ld b/sparc.ld
>> index 56efe34..cec17c9 100644
>> --- a/sparc.ld
>> +++ b/sparc.ld
>> @@ -37,8 +37,20 @@ SECTIONS
>>    .rela.fini     : { *(.rela.fini)      }
>>    .rel.bss       : { *(.rel.bss)                }
>>    .rela.bss      : { *(.rela.bss)               }
>> -  .rel.plt       : { *(.rel.plt)                }
>> -  .rela.plt      : { *(.rela.plt)               }
>> +  .rel.plt      :
>> +  {
>> +    *(.rel.plt)
>> +    PROVIDE (__rel_iplt_start = .);
>> +    *(.rel.iplt)
>> +    PROVIDE (__rel_iplt_end = .);
>> +  }
>> +  .rela.plt       :
>> +  {
>> +    *(.rela.plt)
>> +    PROVIDE (__rela_iplt_start = .);
>> +    *(.rela.iplt)
>> +    PROVIDE (__rela_iplt_end = .);
>> +  }
>>    .init          : { *(.init)   } =0x47ff041f
>>    .text      :
>>    {
>>
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]