bionic/libc/private
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_tls.h Fix __errno for LP64 and clean up __get_tls. 2013-10-09 13:39:13 -07:00
arpa_nameser_compat.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
arpa_nameser.h Fix x86_64 build, clean up intermediate libraries. 2013-10-09 16:00:17 -07:00
bionic_atomic_arm.h bionic_atomic_arm.h: Remove < ARMv6 support 2013-07-03 14:14:06 -07:00
bionic_atomic_gcc_builtin.h Fix implementation of generic atomic operations 2012-07-24 13:56:38 -07:00
bionic_atomic_inline.h Report errors to the log, not just stderr. 2012-07-27 17:43:38 -07:00
bionic_atomic_mips.h [MIPS] Add atomic routines 2012-07-24 10:30:22 -07:00
bionic_atomic_x86.h bionic: Do not use <sys/atomics.h> for platform code. 2011-11-16 16:28:10 +01:00
bionic_auxv.h Remove 32-bit assumptions from the ELF code. 2013-09-30 18:43:46 -07:00
bionic_futex.h Ensure header files using __BEGIN_DECLS include sys/cdefs.h. 2013-06-05 17:58:08 -07:00
bionic_pthread.h Handle pthread-related changes (mutex/atfork) 2012-03-26 15:38:59 -07:00
bionic_ssp.h Simplify __stack_chk_fail, and fix it so we get debuggerd stack traces. 2013-02-14 14:37:34 -08:00
bionic_time.h Ensure header files using __BEGIN_DECLS include sys/cdefs.h. 2013-06-05 17:58:08 -07:00
bionic_tls.h Fix __errno for LP64 and clean up __get_tls. 2013-10-09 13:39:13 -07:00
ErrnoRestorer.h Revert "Revert "More pthreads cleanup."" 2013-02-12 15:27:18 -08:00
kernel_sigset_t.h Only have one copy of the kernel_sigset_t hack, and add more tests. 2013-01-10 14:42:14 -08:00
KernelArgumentBlock.h Remove 32-bit assumptions from the ELF code. 2013-09-30 18:43:46 -07:00
libc_events.h Optimize __memset_chk, __memcpy_chk. DO NOT MERGE. 2013-08-14 18:14:43 -07:00
libc_logging.h Optimize __memset_chk, __memcpy_chk. DO NOT MERGE. 2013-08-14 18:14:43 -07:00
nsswitch.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
resolv_cache.h resolv_cache: hide some libc private functions 2013-03-29 13:56:05 -07:00
resolv_iface.h dns cache per interface iteration 2 2013-02-07 09:40:16 -08:00
resolv_private.h am 87b4286f: Merge "Expose dn_comp and dn_expand to system C code." 2013-07-02 16:02:30 -07:00
resolv_static.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ScopedPthreadMutexLocker.h Fix dlerror(3). 2012-10-11 16:08:51 -07:00
ScopedReaddir.h Reimplement scandir(3). 2013-02-25 13:14:31 -08:00
thread_private.h Clean up useless declaration in thread_private.h 2013-06-05 11:26:24 +08:00
ThreadLocalBuffer.h Revert "Revert "More pthreads cleanup."" 2013-02-12 15:27:18 -08:00