From 1f5e605b3521a59c72d670a656293592d622fe57 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Thu, 30 Jun 2005 02:26:21 +0000 Subject: The function '_dl_memset' should always be inlined regardless of the optimization level chosen. This allows uClibc to be compiled with the latest GCC-4.1.0. While tracking down the specific culprit causing the segmentation fault of the dynamic loader with GCC-4.1.0 I was able to force inlining of other functions such that I shaved 512 bytes off the size of the loader, yay. Also fixed warning in 'dl-hash.c'. --- ldso/ldso/dl-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldso/ldso/dl-hash.c') diff --git a/ldso/ldso/dl-hash.c b/ldso/ldso/dl-hash.c index 5de38a61e..55026b4db 100644 --- a/ldso/ldso/dl-hash.c +++ b/ldso/ldso/dl-hash.c @@ -57,7 +57,7 @@ struct dyn_elf *_dl_handles = NULL; /* This is the hash function that is used by the ELF linker to generate the * hash table that each executable and library is required to have. We need * it to decode the hash table. */ -static inline unsigned long _dl_elf_hash(const unsigned char *name) +static inline unsigned long _dl_elf_hash(const char *name) { unsigned long hash=0; unsigned long tmp; -- cgit v1.2.3