PATCH: Re: Partial symbol export vs --export-dynamic
Nick Clifton
nickc@cambridge.redhat.com
Mon Jun 18 09:07:00 GMT 2001
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
More information about the Binutils
mailing list