rtld: Don't use toupper function in rtld_printf.c
authorJohn Marino <draco@marino.st>
Sat, 17 Mar 2012 10:23:45 +0000 (11:23 +0100)
committerJohn Marino <draco@marino.st>
Sun, 18 Mar 2012 02:11:55 +0000 (03:11 +0100)
commit7d231b33782ce8d89ea974b3ca21b55a71642b92
tree9044fc4a3c657aa8ffbad630be8976bb6bc4c6eb
parent6be2de9ae82304bc0de4968f93a79216bc59cf0e
rtld: Don't use toupper function in rtld_printf.c

The libc function toupper may not function correctly due to TLS use when
LD_DEBUG is in effect.  Rather than determine this for sure, just use the
FreeBSD approach of eliminating ctype.h macro.

Taken from: FreeBSD SVN 232729 (2012-03-09)
libexec/rtld-elf/map_object.c
libexec/rtld-elf/rtld_printf.c