This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFC] Hide autogenerated symbols when linking shared libraries
- From: Maksim Kozlov <maksim dot e dot kozlov at gmail dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Yuri Gribov <tetra2005 at gmail dot com>, binutils at sourceware dot org
- Date: Thu, 3 May 2018 15:51:59 +0300
- Subject: Re: [RFC] Hide autogenerated symbols when linking shared libraries
- References: <CAJOtW+4ifhHp4R3z6pfD2bSaSOjh8hb3LafxFDdR8pbc3RysOg@mail.gmail.com> <2858374c-3652-add8-c785-6b409b99eee3@redhat.com> <CAJOtW+4+NpSq1aBVmsOPg=AFzFh+ddkFp5Nv==gdPHgeQQRO8g@mail.gmail.com> <eb9604a2-265b-81b6-58e6-ba2bd57a20c9@redhat.com>
>
>
> > Do you have any particular uses in mind? I tried grepping glibc,
> > binutils-gdb or libgcc for bss_start but couldn't find anything which
> > would justify them having default visibility...
>
> Not really - I was just speaking in generalities. It may well turn out
> that for, say x86_64 Linux based systems, these symbols are not needed.
> But I would be very wary of removing them without a lot of testing first
> as this is exactly the kind of thing that can break systems in unexpected,
> and unanticipated ways.
>
>
Hi all,
I'm not expert in this area, and I hope I understand right what you are
talking about. I can say that these symbols are widely used in Linux
kernel, RTEMS system and Newlib C library. Yuri, you can try to do grep on
sources of these projects to see if this is what you are talking about.
Also, from my personal experience I can add that these symbols are widely
used in many "selfmade" bare-metal embedded systems.
Hope this is relevant information.
--
Best regards,
Maksim Kozlov