[project @ 2002-01-23 11:29:12 by sewardj]
Fix two problems with the ELF linker:
1. Determine section attributes by examining various bits in the
section header tables, rather than from the section names. This
makes it robust against future changes / additions to the set of
section names.
2. Handle local symbols differently. Do not add them to our own
local symbol table for this object, since that's
(a) wrong -- multiple local symbols can have the same name so long
as each is in a different section, so if we just dump them into
the local symbol table we'll wind up with apparently duplicate
symbols
(b) totally unnecessary, since the relocations against local symbols
simply specify an index into the ELF symbol table for the object,
from whence the address can be calculated without reference to the
name.
TODO: Test on sparc-solaris
Investigate whether PEi386 linker needs fixing similarly
and then
MERGE TO STABLE