From e09f7ef00af02234a9e12724765c71ee29be70ec Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 18 Dec 2012 14:27:50 -0800 Subject: Add back dummy free() GNU CC coverage needs free() and it's highly desirable to leave the code as genuine as possible. Change-Id: I4c821b9d211ef7a8e7168dc5e3116730693999c6 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/2051 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks --- src/include/stdlib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/include/stdlib.h b/src/include/stdlib.h index bb57ab33fb..83eb966b25 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -14,6 +14,8 @@ #if !defined(__PRE_RAM__) void *memalign(size_t boundary, size_t size); void *malloc(size_t size); +/* We never free memory */ +static inline void free(void *ptr) {} #endif #endif /* STDLIB_H */ -- cgit v1.2.3