_dl_elf_hash should use unsigned char

Joseph S. Myers joseph at codesourcery.com
Tue Jan 9 22:29:50 UTC 2007


On Tue, 9 Jan 2007, Joakim Tjernlund wrote:

> > 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?

Tests of C99 extended identifiers, ucnid-*.[cC] in various directories in 
the GCC testsuites.

-- 
Joseph S. Myers
joseph at codesourcery.com



More information about the uClibc mailing list