aboutsummaryrefslogtreecommitdiffstats
path: root/linker
diff options
context:
space:
mode:
authorDan Albert2014-09-23 12:49:21 -0500
committerDan Albert2014-09-24 12:26:41 -0500
commit9a05e3818ada1304a33d66d53c270b532c9111b8 (patch)
treeda260035d11f3c7b7779e4d12946f590290f9e01 /linker
parentadc01348ee51a4ad678b1c277f85cbbed5c2e728 (diff)
downloadplatform-bionic-9a05e3818ada1304a33d66d53c270b532c9111b8.tar.gz
platform-bionic-9a05e3818ada1304a33d66d53c270b532c9111b8.tar.xz
platform-bionic-9a05e3818ada1304a33d66d53c270b532c9111b8.zip
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
Diffstat (limited to 'linker')
-rw-r--r--linker/linker_libc_support.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linker/linker_libc_support.c b/linker/linker_libc_support.c
index 17db6d4e..4c49384b 100644
--- a/linker/linker_libc_support.c
+++ b/linker/linker_libc_support.c
@@ -15,3 +15,7 @@
15 */ 15 */
16 16
17#include "../libc/arch-common/bionic/__dso_handle.h" 17#include "../libc/arch-common/bionic/__dso_handle.h"
18
19int atexit(void (*function)(void) __attribute__((__unused__))) {
20 return -1;
21}