[patch] Default symbol versions.

Paul Brook paul@codesourcery.com
Thu Oct 14 15:45:00 GMT 2004


The ARM EABI requires that a default symbol version based on the soname is 
created and used for unversioned symbols. The attached patch implements this.

Tested on i686-linux and cross to arm-none-symbianelf, and build 
--enable-targets=all
Ok?

Paul

2004-10-14  Paul Brook  <paul@codesourcery.com>

bfd/
 * elflink.c (elf_finalize_dynstr): Skip shared aux structure.
 (bfd_elf_size_dynamic_sections): Create default version definition.
 (elf_link_output_extsym): Adjust for default symbol version.
include/
 * bfdlink.h (struct bfd_link_info): Add create_default_symver.
ld/
 * ld.texinfo: Document --default-symver.
 * ldmain.c (main): Set link_info.create_default_symver.
 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
 (ld_options): Add default-symver.
 (parse_args): Handle OPTION_DEFAULT_SYMVER.
ld/testsuite/
 * ld-elfvers/vers.exp (build_binary): Add ldargs parameter.
 (build_vers_lib_pic_flags): New function.
 Add vers29 test.
 * ld-elfvers/vers29.c: New file.
 * ld-elfvers/vers29.dsym: New file.
 * ld-elfvers/vers29.ver: New file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.default_symver
Type: text/x-diff
Size: 12757 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20041014/cb26bc2b/attachment.bin>


More information about the Binutils mailing list