_dl_elf_hash should use unsigned char

Joakim Tjernlund joakim.tjernlund at transmode.se
Tue Jan 9 14:23:12 PST 2007


> From: uclibc-bounces at uclibc.org 
> [mailto:uclibc-bounces at uclibc.org] On Behalf Of Joseph S. Myers
> Sent: den 9 januari 2007 00:05
> To: uclibc at uclibc.org
> Subject: _dl_elf_hash should use unsigned char
> 
> ELF symbol names are arbitrary 0-terminated sequences of 
> bytes, and the 
> ELF hash function is defined in the ELF specification to use unsigned 
> char.  Thus uClibc's _dl_elf_hash, using plain char, breaks 
> when char is 
> signed and symbol names contain bytes with the high bit set, 
> as with GCC's 
> ucnid-* tests.  This patch fixes this problem.

What is ucnid-* tests?

 Jocke



More information about the uClibc mailing list