From 7452bce8defc06a34612b25ace2ef802c0579a83 Mon Sep 17 00:00:00 2001
From: Jim Huang <jim.huang@linaro.org>
Date: Wed, 20 Apr 2011 04:53:30 +0800
Subject: [PATCH] Hide internal symbol __bionic_brk used by brk() and sbrk()
__bionic_brk was shared by brk() and sbrk(), which should be implementor
specific and hidden to application developers.
Change-Id: Iffe6ab3783e297d919a15812ac4910141a3ff066
---
libc/unistd/brk.c | 1 +
libc/unistd/sbrk.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
@@ -30,6 +30,7 @@
#include <sys/types.h>
/* shared with sbrk.c */
+__LIBC_HIDDEN__
char *__bionic_brk;
int brk(void* end_data)
@@ -32,7 +32,7 @@
#define SBRK_ALIGN 32
/* shared with brk() implementation */
-char* __bionic_brk;
+extern char* __bionic_brk;
void *sbrk(ptrdiff_t increment)
{
--
1.7.4.1