diff options
| author | Ard Biesheuvel <ard.biesheuvel@gmail.com> | 2012-08-21 14:13:50 +0200 |
|---|---|---|
| committer | Ard Biesheuvel <ard.biesheuvel@gmail.com> | 2012-08-28 10:27:02 +0200 |
| commit | f3cfcd869ded41d25c1f4f4e48e7c374a64f9583 (patch) | |
| tree | 8024ef0103694c92f553fae4221fc220e1a12b00 /libc/stdlib | |
| parent | 9dfaa63a1c0d1b8e75dd9d7077a8103a19821fa9 (diff) | |
| download | bionic-f3cfcd869ded41d25c1f4f4e48e7c374a64f9583.zip bionic-f3cfcd869ded41d25c1f4f4e48e7c374a64f9583.tar.gz bionic-f3cfcd869ded41d25c1f4f4e48e7c374a64f9583.tar.bz2 | |
ARM: make CRT_LEGACY_WORKAROUND work as intended
To properly support legacy ARM shared libraries, libc.so needs
to export the symbols __dso_handle and atexit, even though
these are now supplied by the crt startup code.
This patch reshuffles the existing CRT_LEGACY_WORKAROUND
conditionally compiled code slightly so it works as the
original author likely intended.
Change-Id: Id6c0e94dc65b7928324a5f0bad7eba6eb2f464b9
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@gmail.com>
Diffstat (limited to 'libc/stdlib')
| -rw-r--r-- | libc/stdlib/atexit.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libc/stdlib/atexit.c b/libc/stdlib/atexit.c index 55b7132..23a2636 100644 --- a/libc/stdlib/atexit.c +++ b/libc/stdlib/atexit.c @@ -104,17 +104,6 @@ unlock: return (ret); } -#ifdef CRT_LEGACY_WORKAROUND -/* - * Register a function to be performed at exit. - */ -int -atexit(void (*func)(void)) -{ - return (__cxa_atexit((void (*)(void *))func, NULL, NULL)); -} -#endif - /* * Call all handlers registered with __cxa_atexit() for the shared * object owning 'dso'. |
