From 620a1346382f9e10b516bc168f86d499b6716769 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 30 Mar 2011 09:29:49 -0400 Subject: [PATCH] rename __simple_malloc.c to lite_malloc.c - yes this affects behavior! why does this affect behavior? well, the linker seems to traverse archive files starting from its current position when resolving symbols. since calloc.c comes alphabetically (and thus in sequence in the archive file) between __simple_malloc.c and malloc.c, attempts to resolve the "malloc" symbol for use by calloc.c were pulling in the full malloc.c implementation rather than the __simple_malloc.c implementation. as of now, lite_malloc.c and malloc.c are adjacent in the archive and in the correct order, so malloc.c should never be used to resolve "malloc" unless it's already needed to resolve another symbol ("free" or "realloc"). --- src/malloc/{__simple_malloc.c => lite_malloc.c} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/malloc/{__simple_malloc.c => lite_malloc.c} (100%) diff --git a/src/malloc/__simple_malloc.c b/src/malloc/lite_malloc.c similarity index 100% rename from src/malloc/__simple_malloc.c rename to src/malloc/lite_malloc.c -- 2.20.1