bionic/libc/arch-arm
David 'Digit' Turner 891dedb935 libc: Fix 'index' symbol export.
The C library didn't export the 'index' symbol, but its C++ name-mangling
instead, which broke the ABI and prevented some applications from loading
properly.

The main reason was that the implementation under bionic/index.cpp relied
on the declaration to specify that the function has C linkage.

However, the declaration for index() was removed from both <string.h>
and <strings.h> in a recent patch, which made the compiler think it was
ok to compile the function with C++ linkage instead!

This patch does the following:

- Move index() definition to bionic/ndk_cruft.cpp and ensure it uses
  C linkage.

  Note that this removes index() from the 64-bit library entirely, this
  is intentional and will break source compatibility. Simply replacing
  an index() call with the equivalent strchr() should be enough to fix
  this in third-party code.

- Remove bionic/index.cpp from the tree and build files.

- Remove x86 assembly implementation from arch-x86/ to avoid conflict
  with the one in ndk_cruft.cpp

BUG=15606653

Change-Id: I816b589f69c8f8a6511f6be6195d20cf1c4e8123
2014-06-16 13:10:20 -07:00
..
bionic Remove __memcmp16 from bionic. 2014-06-12 15:35:22 -07:00
cortex-a7 libc/arm: add cortex-a7 cpu variant 2013-03-23 01:38:22 -07:00
cortex-a8 libc/arm: add cortex-a8 cpu variant 2013-05-15 20:13:28 -07:00
cortex-a9 denver: optimize memmove 2014-05-20 12:31:38 -07:00
cortex-a15 denver: optimize memmove 2014-05-20 12:31:38 -07:00
denver denver: optimize memmove 2014-05-20 12:31:38 -07:00
generic denver: optimize memmove 2014-05-20 12:31:38 -07:00
include/machine Clean up <machine/ieee.h>. 2014-04-16 16:31:17 -07:00
krait denver: optimize memmove 2014-05-20 12:31:38 -07:00
syscalls Remove ioprio_get(2) and ioprio_set(2) from LP64. 2014-06-12 18:10:13 -07:00
arm.mk libc: Fix 'index' symbol export. 2014-06-16 13:10:20 -07:00