bionic/libc/stdio
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
..
asprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fflush.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fgetc.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fileext.h libc: speed-up flockfile()/funlockfile() 2011-11-15 13:16:42 +01:00
findfp.c Fix x86_64 build, clean up intermediate libraries. 2013-10-09 16:00:17 -07:00
floatio.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fprintf.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
fputc.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fread.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
freopen.c Define DEFFILEMODE and friends 2012-11-29 11:53:33 -08:00
fscanf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fseek.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
ftell.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fvwrite.c Bug 3330205 Put blanks and zeroes in const area 2011-01-09 11:38:56 -08:00
fvwrite.h Bug 3330205 Put blanks and zeroes in const area 2011-01-09 11:38:56 -08:00
gets.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
glue.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
local.h Fix %hhd formats in the printf family. 2013-09-23 16:02:39 -07:00
printf.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
refill.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
rewind.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
scanf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
snprintf.c Remove _FORTIFY_SOURCE in implementation files. 2013-10-01 15:02:07 -07:00
sprintf.c Remove _FORTIFY_SOURCE in implementation files. 2013-10-01 15:02:07 -07:00
sscanf.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
stdio.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
ungetc.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vasprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vfprintf.c Fix %hhd formats in the printf family. 2013-09-23 16:02:39 -07:00
vfscanf.c am c5c84c86: Merge "vfscanf: Add support for L type modifier for long long" 2011-05-17 04:47:06 -07:00
vprintf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
vscanf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
vsnprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vsprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vsscanf.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
wbuf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
wcio.h typo in libc/stdio/wcio.h 2011-07-02 20:29:25 -04:00