[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

version scripts not properly honored for executables (ld 2.14)

From: Jan Beulich
Subject: version scripts not properly honored for executables (ld 2.14)
Date: Thu, 11 Dec 2003 12:56:01 +0100

Symbols listed as global in a version script used to link an executable
will not appear in the dynamic symbol table, unless --export-dynamic was
specified (and in that case the symbols made local by the version script
will obviously continue to be global). This is because these symbols
never get assigned a dynindx (elf_link_add_object_symbols does and can
do that only for symbols already known to be dynamic or when linking a
shared library, so elf_link_assign_sym_version should be doing this but
doesn't at present).
In addition, there is a perhaps significant performance degradation in
elf_link_assign_sym_version's first loop over the local patterns in that
this loop has inner conditionals that are loop-variable independent and
could thus be used to prevent entering the loop altogether.

Thank you,

i.A. Jan Beulich
Software Engineer Senior
Novell Linux Platform Engineering

Novell, the leading provider of Net business solutions.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]