From: "H.J. Lu" <hjl.tools@gmail.com>
To: Alexandre Oliva <oliva@gnu.org>
Cc: binutils@sourceware.org, hainque@adacore.com
Subject: Re: [PATCH] elf: Strip unreferenced weak undefined symbols
Date: Tue, 23 Apr 2024 09:13:20 -0700 [thread overview]
Message-ID: <CAMe9rOoUxL65xsWf5XgDM7K3jy8=QgaunRpu=srR7AGEcfmp8g@mail.gmail.com> (raw)
In-Reply-To: <or1q6yosij.fsf@lxoliva.fsfla.org>
[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]
On Sun, Apr 21, 2024 at 10:50 PM Alexandre Oliva <oliva@gnu.org> wrote:
>
> Thanks again for the patch.
>
> Olivier pointed out that a comment you moved had a duplicate word, and
> suggested removing it. Ok to install?
>
> From: Olivier Hainque <hainque@adacore.com>
> Date: Mon, 22 Apr 2024 05:30:38 +0000
>
> Remove duplicate word.
>
> for bfd/ChangeLog
>
> PR ld/31652
> * elflink.c (_bfd_elf_link_output_relocs): Drop duplicate word.
> ---
> bfd/elf-vxworks.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bfd/elf-vxworks.c b/bfd/elf-vxworks.c
> index 36e5540f9c04..5d91913f097f 100644
> --- a/bfd/elf-vxworks.c
> +++ b/bfd/elf-vxworks.c
> @@ -186,7 +186,7 @@ elf_vxworks_emit_relocs (bfd *output_bfd,
> library. We are creating a definition in the output
> file but it does not come from any of our normal (.o)
> files. ie. a PLT stub. Normally this would be a
> - relocation against against SHN_UNDEF with the VMA of
> + relocation against SHN_UNDEF with the VMA of
> the PLT stub. This upsets the VxWorks loader.
> Convert it to a section-relative relocation. This
> gets some other symbols (for instance .dynbss), but
> --
> 2.25.1
>
I am checking in this as an obvious fix.
--
H.J.
[-- Attachment #2: 0001-bfd-Remove-duplicate-word-in-elf-vxworks.c.patch --]
[-- Type: text/x-patch, Size: 1051 bytes --]
From 9b441c415c556e608e22cb9d16b500992a972b0c Mon Sep 17 00:00:00 2001
From: Olivier Hainque <hainque@adacore.com>
Date: Mon, 22 Apr 2024 02:50:28 -0300
Subject: [PATCH] bfd: Remove duplicate word in elf-vxworks.c
PR ld/31652
* elf-vxworks.c (elf_vxworks_emit_relocs): Drop duplicate word.
---
bfd/elf-vxworks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bfd/elf-vxworks.c b/bfd/elf-vxworks.c
index 36e5540f9c0..5d91913f097 100644
--- a/bfd/elf-vxworks.c
+++ b/bfd/elf-vxworks.c
@@ -186,7 +186,7 @@ elf_vxworks_emit_relocs (bfd *output_bfd,
library. We are creating a definition in the output
file but it does not come from any of our normal (.o)
files. ie. a PLT stub. Normally this would be a
- relocation against against SHN_UNDEF with the VMA of
+ relocation against SHN_UNDEF with the VMA of
the PLT stub. This upsets the VxWorks loader.
Convert it to a section-relative relocation. This
gets some other symbols (for instance .dynbss), but
--
2.44.0
prev parent reply other threads:[~2024-04-23 16:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-18 12:28 H.J. Lu
2024-04-19 0:38 ` Alan Modra
2024-04-19 7:15 ` Alan Modra
2024-04-22 5:50 ` Alexandre Oliva
2024-04-23 16:13 ` H.J. Lu [this message]
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='CAMe9rOoUxL65xsWf5XgDM7K3jy8=QgaunRpu=srR7AGEcfmp8g@mail.gmail.com' \
--to=hjl.tools@gmail.com \
--cc=binutils@sourceware.org \
--cc=hainque@adacore.com \
--cc=oliva@gnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).