Version script help needed

Ulrich Drepper drepper@redhat.com
Mon Aug 5 10:46:00 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

H. J. Lu wrote:

>>>And I wanted to accomplish that without having an explicit .symver for 
>>>the VERNEW symbol version.
>>
>>This is not how the versioning scheme was designed.  Live with it.
>>
> 
> 
> Personally, I believe it is a bfd bug. Basically, elf_link_assign_sym_version
> matches divdi3 with VEROLD for

You cannot simply allow this.  Conider all the different situations. 
What if a symbol is undefined for more than one version name?  Or what 
if .symver isn't used and adding the version script to the linker 
command line is forgotten?

Requiring .symver is a deliberate decision to catch mistakes.

- -- 
- ---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9Trnb2ijCOnn/RHQRAlY3AJ9mG3fOcBJTn5xeZmhIx8Vf0OYETACgsTNz
B8LeUPx0xOa7Q8nn4DZ++Cc=
=WDmI
-----END PGP SIGNATURE-----



More information about the Binutils mailing list