[PATCH] elf: Strip unreferenced weak undefined symbols
H.J. Lu
hjl.tools@gmail.com
Tue Apr 23 16:13:20 GMT 2024
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-bfd-Remove-duplicate-word-in-elf-vxworks.c.patch
Type: text/x-patch
Size: 1051 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20240423/640120e7/attachment.bin>
More information about the Binutils
mailing list