platform_bionic/libc/arch-arm/bionic
Elliott Hughes eb847bc866 Fix x86_64 build, clean up intermediate libraries.
The x86_64 build was failing because clone.S had a call to __thread_entry which
was being added to a different intermediate .a on the way to making libc.so,
and the linker couldn't guarantee statically that such a relocation would be
possible.

  ld: error: out/target/product/generic_x86_64/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a(clone.o): requires dynamic R_X86_64_PC32 reloc against '__thread_entry' which may overflow at runtime; recompile with -fPIC

This patch addresses that by ensuring that the caller and callee end up in the
same intermediate .a. While I'm here, I've tried to clean up some of the mess
that led to this situation too. In particular, this removes libc/private/ from
the default include path (except for the DNS code), and splits out the DNS
code into its own library (since it's a weird special case of upstream NetBSD
code that's diverged so heavily it's unlikely ever to get back in sync).

There's more cleanup of the DNS situation possible, but this is definitely a
step in the right direction, and it's more than enough to get x86_64 building
cleanly.

Change-Id: I00425a7245b7a2573df16cc38798187d0729e7c4
2013-10-09 16:00:17 -07:00
..
__get_sp.S Use ENTRY/END in ARM __get_sp. 2013-02-11 16:58:34 -08:00
_exit_with_stack_teardown.S pthread_exit should call __NR_exit with status 0. 2013-10-08 14:48:05 -07:00
_setjmp.S Add function marks and size indications 2011-02-17 09:07:25 -08:00
abort_arm.S Use bl instead of blx to support interworking properly. 2013-05-31 14:39:23 -07:00
atexit_legacy.c Fix x86_64 build, clean up intermediate libraries. 2013-10-09 16:00:17 -07:00
atomics_arm.c libc: Fix typo that broke NDK compatibility. 2011-11-23 14:38:36 +01:00
clone.S EABI syscall cleanup. 2013-07-16 11:52:24 -07:00
eabi.c Delete CAVEATS / fix spelling. 2013-08-27 17:05:19 -07:00
exidx_dynamic.c Add link.h for all platforms with dl_phdr_info 2012-08-17 12:44:23 -07:00
exidx_static.c Add link.h for all platforms with dl_phdr_info 2012-08-17 12:44:23 -07:00
ffs.S Everyone has CLZ. 2013-02-13 14:40:48 -08:00
futex_arm.S EABI syscall cleanup. 2013-07-16 11:52:24 -07:00
kill.S The SYS_ constants should cover all __NR_ values. 2013-03-21 22:26:20 -07:00
libgcc_compat.c Update the comments to reflect the current status. 2013-08-02 15:53:18 -07:00
memcmp.S Add a bunch more missing ENDs to assembler routines. 2013-02-13 15:12:32 -08:00
memcmp16.S Add function marks and size indications 2011-02-17 09:07:25 -08:00
memcpy.a9.S libc/arch-arm/bionic/memcpy.a9.S: memcpy from cortex-strings. 2013-07-03 10:20:43 -07:00
memcpy.S Add optimized version of memcpy for Cortex A9 2012-11-08 18:02:14 -08:00
setjmp.S Add function marks and size indications 2011-02-17 09:07:25 -08:00
sigsetjmp.S Add function marks and size indications 2011-02-17 09:07:25 -08:00
strcmp.S Use ENTRY and EXIT macros for strcmp, memcpy, atexit. 2011-10-11 12:12:05 +04:00
syscall.S Replace unnecessary ARM uses of <sys/linux-syscalls.h> with <asm/unistd.h>. 2013-03-21 23:07:11 -07:00
tgkill.S Fix abort(3) to raise SIGABRT rather than causing SIGSEGV. 2013-06-10 17:17:46 -07:00
tkill.S The SYS_ constants should cover all __NR_ values. 2013-03-21 22:26:20 -07:00