This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] bfd: Fix warning when compiling with clang, fix buglet
- From: Nick Clifton <nickc at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>, Alan Modra <amodra at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 1 Feb 2018 13:24:10 +0000
- Subject: Re: [PATCH] bfd: Fix warning when compiling with clang, fix buglet
- Authentication-results: sourceware.org; auth=none
- References: <1517353359-6550-1-git-send-email-simon.marchi@ericsson.com> <20180131081329.GB20622@bubble.grove.modra.org> <f92231b9-560f-83e4-c65f-a7f54ef51540@ericsson.com>
Hi Simon,
> bfd/ChangeLog:
>
> * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
> arithmetic on NULL pointer.
> * elflink.c (_bfd_elf_archive_symbol_lookup,
> elf_link_add_archive_symbols): Likewise.
>
> ld/ChangeLog:
>
> * ldexp.c (fold_name, exp_fold_tree_1): Avoid pointer arithmetic
> on NULL pointer.
I have applied your revised patch.
Cheers
Nick