All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Aurelien Jarno <aurelien@aurel32.net>
Cc: Blue Swirl <blauwirbel@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] sparc-linux-user: Fix missing symbols in .rel/.rela.plt sections
Date: Sat, 06 Apr 2013 10:08:09 +0400	[thread overview]
Message-ID: <515FBBC9.1020800@msgid.tls.msk.ru> (raw)
In-Reply-To: <20120110173816.GB6244@volta.aurel32.net>

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 <blauwirbel@gmail.com>
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> 
> ---
> 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      :
>    {
> 

  parent reply	other threads:[~2013-04-06  6:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-07 20:16 [Qemu-devel] [PATCH] sparc-linux-user: Fix missing symbols in .rel/.rela.plt sections Aurelien Jarno
2012-01-07 20:36 ` Blue Swirl
2012-01-07 21:01   ` Aurelien Jarno
2012-01-10 17:38     ` Aurelien Jarno
2012-01-21 18:42       ` Blue Swirl
2013-04-06  6:08       ` Michael Tokarev [this message]
2013-05-08  7:18         ` [Qemu-devel] " Michael Tokarev
2013-05-09 17:56           ` Blue Swirl
2013-05-19 12:58             ` Aurelien Jarno
2013-05-19 14:51               ` Michael Tokarev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=515FBBC9.1020800@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=aurelien@aurel32.net \
    --cc=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.