From 9a05e3818ada1304a33d66d53c270b532c9111b8 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 23 Sep 2014 10:49:21 -0700 Subject: [PATCH] Add a dummy atexit(3) to the linker. This is needed when building the linker against a libc that was built with coverage information. Bug: 17553780 Change-Id: If131002e067dd7768fc657c30e62c42a45c05ace --- linker/linker_libc_support.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linker/linker_libc_support.c b/linker/linker_libc_support.c index 17db6d4e7..4c49384bf 100644 --- a/linker/linker_libc_support.c +++ b/linker/linker_libc_support.c @@ -15,3 +15,7 @@ */ #include "../libc/arch-common/bionic/__dso_handle.h" + +int atexit(void (*function)(void) __attribute__((__unused__))) { + return -1; +}