[PATCH v2] gas/ELF: Allow local symbol with non-protected visibility
H.J. Lu
hjl.tools@gmail.com
Thu Jun 25 02:11:45 GMT 2026
On Thu, Jun 25, 2026 at 9:30 AM Alan Modra <amodra@gmail.com> wrote:
>
> On Wed, Jun 24, 2026 at 06:37:57PM +0800, H.J. Lu wrote:
> > Here is the v2 path to partially revert:
> >
> > commit c4150acbda1b3ce0602f79cbb7700b39e577be7e
> > Author: Jan Beulich <jbeulich@suse.com>
> > Date: Fri May 8 11:45:04 2026 +0200
> >
> > gas/ELF: warn upon non-default visibility of local symbols
> >
> > and update elf_adjust_symtab to only warn local symbol with protected
> > visibility.
>
> OK if this has been tested over a reasonable set of targets, ie. not
> just x86.
>
> --
> Alan Modra
I also tested it with aarch64-linux-gnu and tic6x-elf. No regressions.
I am checking it in.
--
H.J.
More information about the Binutils
mailing list