This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Re: Partial symbol export vs --export-dynamic
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: PATCH: Re: Partial symbol export vs --export-dynamic
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 18 Jun 2001 17:07:26 +0100
- Cc: Jean-Francois Panisset <panisset at discreet dot com>,binutils at sources dot redhat dot com
- References: <hjl@lucon.org> <200106170748.DAA877699@cuba.discreet.qc.ca><20010617180729.A24660@lucon.org>
HI H.J.
> It turned out it was quite easy to do. Here is a patch. I just
> expanded the symbol versioning to executables. You can use
>
> # gcc -Wl,-export-dynamic,--version-script,version.map ...
>
> You can use the version-script to control what you want to export. It
> supports regular expression, C++ symbol, Java, ... among other
> things.
Well that looks very neat. Please could you update the documentation
to mention this new behavior.
> 2001-06-17 H.J. Lu <hjl@gnu.org>
>
> * elflink.h (elf_info_failed): Add a new field, verdefs.
> (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
> elf_export_symbol.
> (elf_export_symbol): Check eif->verdefs to decide if a symbol
> should be exported.
Approved.
Cheers
Nick