This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Allow Elf_Symndx size not match ELF arch size


Jakub send a patch to correct the handling of the .hash setion entries
in ELF files.  The current code assumeed different types Elf32_Symndx
and Elf64_Symndx.  This is not correct (ccording to the ELF specs) and
most 64 bit platforms also are not using it this way.  The only
exception is Linux/Alpha.

Therefore I've changed Jakub's patch slightly.  The types
Elf{32,64}_Symndx are gone.  I don't think anybody used them.  Instead
in link.h there is a definition of Elf_Symndx.  There is none in
elf.h.  But this is ok IMO since it's always a 32 bit type with the
one exception one has to know about.

If you think this change is a problem speak up now.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]