Version script help needed
H. J. Lu
hjl@lucon.org
Mon Aug 5 10:54:00 GMT 2002
On Mon, Aug 05, 2002 at 10:45:58AM -0700, Ulrich Drepper wrote:
> -----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?
Please submit testcases so that we can make sure ld is doing the
right thing.
>
> Requiring .symver is a deliberate decision to catch mistakes.
>
The problem is the current ld does the wrong thing. For Franz's
testcase, it generates
00000288 g DF .text 0000000a (VEROLD) divdi3
instead of intended
000002d8 g DF .text 0000000a (VEROLD) divdi3
000002e4 g DF .text 0000000a VERNEW divdi3
without any warnings.
H.J.
More information about the Binutils
mailing list