OSDN Git Service

android-x86/bionic.git
9 years agoMerge "Test that ip6-localhost exists in etc/hosts."
Yabin Cui [Wed, 14 Jan 2015 01:50:20 +0000 (01:50 +0000)]
Merge "Test that ip6-localhost exists in etc/hosts."

9 years agoMerge "Refactoring: use generic reloc constants"
Dmitriy Ivanov [Wed, 14 Jan 2015 01:34:30 +0000 (01:34 +0000)]
Merge "Refactoring: use generic reloc constants"

9 years agoTest that ip6-localhost exists in etc/hosts.
Yabin Cui [Tue, 13 Jan 2015 22:35:15 +0000 (14:35 -0800)]
Test that ip6-localhost exists in etc/hosts.

Addition change: make netdb_test pass on host.

Bug: 18791191
Change-Id: I7a9e29aa559ff6557288b47323d8a436379201a2

9 years agoMerge "Sync with upstream OpenBSD stdio."
Elliott Hughes [Wed, 14 Jan 2015 01:27:37 +0000 (01:27 +0000)]
Merge "Sync with upstream OpenBSD stdio."

9 years agoSync with upstream OpenBSD stdio.
Elliott Hughes [Wed, 14 Jan 2015 01:19:21 +0000 (17:19 -0800)]
Sync with upstream OpenBSD stdio.

Mainly to get the __atexit_register_cleanup removals we suggested.

Change-Id: I58d40b8c5b8401bfb6bfffe8f3430ac0718af917

9 years agoRefactoring: use generic reloc constants
Dmitriy Ivanov [Tue, 13 Jan 2015 20:17:31 +0000 (12:17 -0800)]
Refactoring: use generic reloc constants

Change-Id: I94dd6256b1b4509b6ea696a3aff17a3991529468

9 years agoMerge "Revert "Refactoring: use generic reloc constants""
Dimitry Ivanov [Tue, 13 Jan 2015 22:32:48 +0000 (22:32 +0000)]
Merge "Revert "Refactoring: use generic reloc constants""

9 years agoRevert "Refactoring: use generic reloc constants"
Dimitry Ivanov [Tue, 13 Jan 2015 22:31:54 +0000 (22:31 +0000)]
Revert "Refactoring: use generic reloc constants"

This reverts commit 265a60a0d285a733d9d98f53672bce668803b434.

Change-Id: I6d46db0ac03cda44ed1e20f6084a552e0089eb14

9 years agoMerge "Refactoring: use generic reloc constants"
Dmitriy Ivanov [Tue, 13 Jan 2015 22:21:04 +0000 (22:21 +0000)]
Merge "Refactoring: use generic reloc constants"

9 years agoRefactoring: use generic reloc constants
Dmitriy Ivanov [Tue, 13 Jan 2015 20:17:31 +0000 (12:17 -0800)]
Refactoring: use generic reloc constants

Change-Id: I67918a1a926164a38a5a47f2264390632eb42905

9 years agoMerge "Check the committer rather than the Gerrit owner."
Dan Albert [Tue, 13 Jan 2015 00:58:30 +0000 (00:58 +0000)]
Merge "Check the committer rather than the Gerrit owner."

9 years agoCheck the committer rather than the Gerrit owner.
Dan Albert [Tue, 13 Jan 2015 00:23:53 +0000 (16:23 -0800)]
Check the committer rather than the Gerrit owner.

Guarding based on the Gerrit owner can be circumvented by an arbitrary
user uploading a different patch with a Change-Id that is non-unique,
with the other copy being owned by a Googler.

Change-Id: I5414b679e361d4c38d70bf9c4516c122f668fc49

9 years agoMerge "Guard against @google.com.example.com."
Dan Albert [Mon, 12 Jan 2015 21:49:05 +0000 (21:49 +0000)]
Merge "Guard against @google.com.example.com."

9 years agoGuard against @google.com.example.com.
Dan Albert [Mon, 12 Jan 2015 20:25:31 +0000 (12:25 -0800)]
Guard against @google.com.example.com.

Begin adding some unit tests. Testing the Jenkins interface will
probably be difficult, but testing that we can properly handle
messages from Gerrit is easy enough.

Change-Id: Id7e8e175e0f064fd10715febe40040a65564c701

9 years agoMerge "Oops. Fix dict key."
Dan Albert [Mon, 12 Jan 2015 19:59:28 +0000 (19:59 +0000)]
Merge "Oops. Fix dict key."

9 years agoOops. Fix dict key.
Dan Albert [Mon, 12 Jan 2015 19:56:41 +0000 (11:56 -0800)]
Oops. Fix dict key.

Change-Id: Ia8295417d4097f38eef633089cb4539b849f3c74

9 years agoMerge "Only build changes that come from @google.com."
Dan Albert [Mon, 12 Jan 2015 19:51:39 +0000 (19:51 +0000)]
Merge "Only build changes that come from @google.com."

9 years agoOnly build changes that come from @google.com.
Dan Albert [Sat, 10 Jan 2015 18:38:53 +0000 (10:38 -0800)]
Only build changes that come from @google.com.

Googlers should be able to tell the buildbot to launch builds for an
external contributor's change, but Gerrit is determined to make this
hard for us. The email sent by Gerrit for comments doesn't actually
contain the email address of the commenter in any clear way, only the
name. It does however contain a list of `Gerrit-Reviewer: Name
<email>` entries that could be used for this though.

Change-Id: Iee61f06dcd8f0024f16b535ea9a34765bf01b2e7

9 years agoMerge "Make indentation match the style guide."
Dan Albert [Sat, 10 Jan 2015 06:45:20 +0000 (06:45 +0000)]
Merge "Make indentation match the style guide."

9 years agoMerge "Clean up paths.h."
Yabin Cui [Sat, 10 Jan 2015 05:17:29 +0000 (05:17 +0000)]
Merge "Clean up paths.h."

9 years agoClean up paths.h.
Yabin Cui [Thu, 8 Jan 2015 04:36:20 +0000 (20:36 -0800)]
Clean up paths.h.

Bug: 18905946
Change-Id: I02cd1ddd5c0b0af165685413bc1fb12ca6bf5f33

9 years agoMake indentation match the style guide.
Dan Albert [Sat, 10 Jan 2015 01:22:00 +0000 (17:22 -0800)]
Make indentation match the style guide.

Apparently Google abandoned the 2 space indent for Python long ago.
Helps to actually read the style guide before trying to adhere to it.

Change-Id: I4feb019f0916f9d8e4f78c0dbeafbe45d8a46bfd

9 years agoMerge "Use relative imports."
Dan Albert [Sat, 10 Jan 2015 00:58:12 +0000 (00:58 +0000)]
Merge "Use relative imports."

9 years agoUse relative imports.
Dan Albert [Sat, 10 Jan 2015 00:52:07 +0000 (16:52 -0800)]
Use relative imports.

Making `bionicbb` its own package required `PYTHONPATH=..`, which we
don't want. Just use a relative import instead.

Change-Id: I59b9852522118ece89829288a4921902e756e4aa

9 years agoMerge "Add JSON files and oauth storage to .gitignore."
Dan Albert [Sat, 10 Jan 2015 00:43:07 +0000 (00:43 +0000)]
Merge "Add JSON files and oauth storage to .gitignore."

9 years agoMerge "Make service URLs configurable."
Dan Albert [Sat, 10 Jan 2015 00:43:03 +0000 (00:43 +0000)]
Merge "Make service URLs configurable."

9 years agoAdd JSON files and oauth storage to .gitignore.
Dan Albert [Sat, 10 Jan 2015 00:24:17 +0000 (16:24 -0800)]
Add JSON files and oauth storage to .gitignore.

The only JSON file is the client secret file, which we really don't
want leaking. Same goes for the oauth storage file.

Change-Id: Ie860704574ec37ccfc50ff7c9d59717a7b9b443b

9 years agoMake service URLs configurable.
Dan Albert [Sat, 10 Jan 2015 00:18:48 +0000 (16:18 -0800)]
Make service URLs configurable.

Change-Id: I91df77b7e0294be5e6180460b0ef26d7ead2ea7d

9 years agoMerge changes I713800ce,I1dea46c3
Dmitriy Ivanov [Fri, 9 Jan 2015 23:44:50 +0000 (23:44 +0000)]
Merge changes I713800ce,I1dea46c3

* changes:
  Refactor soinfo::relocate
  Add ARM_IRELATIVE relocation

9 years agoMerge "Markdown-ify 5137db3."
Dan Albert [Fri, 9 Jan 2015 23:32:26 +0000 (23:32 +0000)]
Merge "Markdown-ify 5137db3."

9 years agoMarkdown-ify 5137db3.
Dan Albert [Fri, 9 Jan 2015 23:24:28 +0000 (15:24 -0800)]
Markdown-ify 5137db3.

Most of these are just aesthetic, but the `_FILE_OFFSET_BITS` probably
would have rendered partly as italics and skipped some underscores.

GitHub's Markdown also doesn't identify our bug URLs as links, so mark
them explicitly.

Change-Id: I62be7542aa43929d847de2bad7d8d1ed3aaa640c

9 years agoMerge "Check in bionicbb code."
Dan Albert [Fri, 9 Jan 2015 23:17:49 +0000 (23:17 +0000)]
Merge "Check in bionicbb code."

9 years agoCheck in bionicbb code.
Dan Albert [Fri, 9 Jan 2015 22:12:52 +0000 (14:12 -0800)]
Check in bionicbb code.

These have been sitting around in a git repo on my machine for a
while. They're now big an important enough that I'd like to both keep
them securely backed up, and also have my changes reviewed.

Change-Id: Ic4545149b4b07f0d57b21cac32aab8553dceb567

9 years agoRefactor soinfo::relocate
Dmitriy Ivanov [Fri, 9 Jan 2015 07:30:15 +0000 (23:30 -0800)]
Refactor soinfo::relocate

 Move common relocation types outside of ifdefs

Change-Id: I713800ce123a18178b5ac80c0b3c7bd6b21a02c2

9 years agoMerge "Add our LP32 ABI defects to the readme."
Elliott Hughes [Fri, 9 Jan 2015 21:54:08 +0000 (21:54 +0000)]
Merge "Add our LP32 ABI defects to the readme."

9 years agoAdd our LP32 ABI defects to the readme.
Elliott Hughes [Fri, 9 Jan 2015 20:21:24 +0000 (12:21 -0800)]
Add our LP32 ABI defects to the readme.

Change-Id: Id77a3dbf6b91243c57528ed86ca24100d8795907

9 years agoMerge "Revert "Must use Clang assembler for mips target.""
Chih-hung Hsieh [Fri, 9 Jan 2015 20:05:16 +0000 (20:05 +0000)]
Merge "Revert "Must use Clang assembler for mips target.""

9 years agoMerge "Remove outdated list of abi bugs"
Dmitriy Ivanov [Fri, 9 Jan 2015 18:32:38 +0000 (18:32 +0000)]
Merge "Remove outdated list of abi bugs"

9 years agoRevert "Must use Clang assembler for mips target."
Duane Sand [Thu, 8 Jan 2015 18:36:56 +0000 (10:36 -0800)]
Revert "Must use Clang assembler for mips target."

This reverts commit 6f96d58c0de191ac479d0fa83c3b9a514f4d3c48.

9 years agoAdd ARM_IRELATIVE relocation
Dmitriy Ivanov [Fri, 9 Jan 2015 06:22:27 +0000 (22:22 -0800)]
Add ARM_IRELATIVE relocation

Bug: 17399706
Change-Id: I1dea46c3a3c4572558e718283489c323794176c7

9 years agoMerge "Fix freeaddrinfo(NULL)."
Elliott Hughes [Fri, 9 Jan 2015 02:48:28 +0000 (02:48 +0000)]
Merge "Fix freeaddrinfo(NULL)."

9 years agoFix freeaddrinfo(NULL).
Elliott Hughes [Fri, 9 Jan 2015 01:28:46 +0000 (17:28 -0800)]
Fix freeaddrinfo(NULL).

Bug: https://code.google.com/p/android/issues/detail?id=13228
Change-Id: I5e3b126d90d750a93ac0b8872198e50ba047e603

9 years agoMerge "Make pthread stack size match real range."
Yabin Cui [Thu, 8 Jan 2015 22:57:27 +0000 (22:57 +0000)]
Merge "Make pthread stack size match real range."

9 years agoMake pthread stack size match real range.
Yabin Cui [Thu, 8 Jan 2015 20:32:42 +0000 (12:32 -0800)]
Make pthread stack size match real range.

Bug: 18908062
Change-Id: I7037ac8273ebe54dd19b1561c7a376819049124c

9 years agoMerge "Set linux 32bit personality for 32 bit processes"
Dmitriy Ivanov [Thu, 8 Jan 2015 00:46:48 +0000 (00:46 +0000)]
Merge "Set linux 32bit personality for 32 bit processes"

9 years agoSet linux 32bit personality for 32 bit processes
Dmitriy Ivanov [Wed, 7 Jan 2015 23:05:49 +0000 (15:05 -0800)]
Set linux 32bit personality for 32 bit processes

Bug: 18069809
Change-Id: Ie143d56b0f8f03510dc451649291067e1add1d2f

9 years agoMerge "Print error when prelink fails for main executable"
Dmitriy Ivanov [Thu, 8 Jan 2015 00:08:34 +0000 (00:08 +0000)]
Merge "Print error when prelink fails for main executable"

9 years agoPrint error when prelink fails for main executable
Dmitriy Ivanov [Wed, 7 Jan 2015 23:48:25 +0000 (15:48 -0800)]
Print error when prelink fails for main executable

Bug: 18931021
Change-Id: Ib6c39a409161b20a10c3485272c73bc2abd4ee4f
(cherry picked from commit d9e211ca1fcf8bb78a1e1de9e54fe7c8d0a01518)

9 years agoRemove outdated list of abi bugs
Dmitriy Ivanov [Wed, 7 Jan 2015 22:14:34 +0000 (14:14 -0800)]
Remove outdated list of abi bugs

Change-Id: I275093a7a66b53ec25317e02c4bff46c2facc030

9 years agoMerge "_Unwind_Context is a struct."
Elliott Hughes [Wed, 7 Jan 2015 02:59:26 +0000 (02:59 +0000)]
Merge "_Unwind_Context is a struct."

9 years ago_Unwind_Context is a struct.
Elliott Hughes [Wed, 7 Jan 2015 02:48:24 +0000 (18:48 -0800)]
_Unwind_Context is a struct.

Change-Id: Iff2c52dc630eb83b931a78fdebc4494d69462db7

9 years agoMerge "Remove PTHREAD_ATTR_FLAG_USER_ALLOCATED_STACK."
Yabin Cui [Wed, 7 Jan 2015 01:28:40 +0000 (01:28 +0000)]
Merge "Remove PTHREAD_ATTR_FLAG_USER_ALLOCATED_STACK."

9 years agoRemove PTHREAD_ATTR_FLAG_USER_ALLOCATED_STACK.
Yabin Cui [Tue, 6 Jan 2015 17:31:00 +0000 (09:31 -0800)]
Remove PTHREAD_ATTR_FLAG_USER_ALLOCATED_STACK.

Patch for https://android-review.googlesource.com/#/c/120844/.

Change-Id: Idca5ccd7b28e8f07f1d2d1b6e3bba6781b62f0e0

9 years agoMerge "[MIPS64] Add correct mcontext_t for 64-bit MIPS"
Elliott Hughes [Tue, 6 Jan 2015 17:43:24 +0000 (17:43 +0000)]
Merge "[MIPS64] Add correct mcontext_t for 64-bit MIPS"

9 years ago[MIPS64] Add correct mcontext_t for 64-bit MIPS
Faraz Shahbazker [Mon, 5 Jan 2015 21:27:30 +0000 (13:27 -0800)]
[MIPS64] Add correct mcontext_t for 64-bit MIPS

Change-Id: I76d503860d0e1d937b6913bf2c1c6ebb531617da

9 years agoMerge "better gtest runner for bionic"
Yabin Cui [Fri, 2 Jan 2015 22:38:41 +0000 (22:38 +0000)]
Merge "better gtest runner for bionic"

9 years agoMerge "Reserve enough user request stack space in pthread_create."
Yabin Cui [Fri, 2 Jan 2015 22:37:55 +0000 (22:37 +0000)]
Merge "Reserve enough user request stack space in pthread_create."

9 years agoReserve enough user request stack space in pthread_create.
Yabin Cui [Tue, 23 Dec 2014 03:17:33 +0000 (19:17 -0800)]
Reserve enough user request stack space in pthread_create.

Bug: 18830897
Change-Id: I1ba4aaeaf66a7ff99c5d82ad45469011171b0a3b

9 years agoMerge "Remove bogus transitive includes."
Elliott Hughes [Mon, 29 Dec 2014 21:52:03 +0000 (21:52 +0000)]
Merge "Remove bogus transitive includes."

9 years agoRemove bogus transitive includes.
Elliott Hughes [Mon, 29 Dec 2014 21:29:50 +0000 (13:29 -0800)]
Remove bogus transitive includes.

<signal.h> shouldn't get you the contents of <errno.h>, and <fcntl.h>
shouldn't get you the contents of <unistd.h>.

Change-Id: I347499cd8671bfee98e6b8e875a97cab3a3655d3

9 years agoMerge "Ensure <fcntl.h> defines the S_* constants from <sys/stat.h>."
Elliott Hughes [Mon, 29 Dec 2014 19:40:44 +0000 (19:40 +0000)]
Merge "Ensure <fcntl.h> defines the S_* constants from <sys/stat.h>."

9 years agoEnsure <fcntl.h> defines the S_* constants from <sys/stat.h>.
Elliott Hughes [Mon, 29 Dec 2014 19:14:38 +0000 (11:14 -0800)]
Ensure <fcntl.h> defines the S_* constants from <sys/stat.h>.

POSIX says "The <fcntl.h> header shall define the symbolic constants for file
modes for use as values of mode_t as described in <sys/stat.h>".

Needed to build ToT strace.

Change-Id: Ia85a51ef6fd86a48084fe48ce24963000a937d37

9 years agoMerge "Remove more BSD cruft from the public headers."
Elliott Hughes [Tue, 23 Dec 2014 20:14:52 +0000 (20:14 +0000)]
Merge "Remove more BSD cruft from the public headers."

9 years agoMerge "Fix nan output in the printf family."
Elliott Hughes [Sun, 21 Dec 2014 02:54:06 +0000 (02:54 +0000)]
Merge "Fix nan output in the printf family."

9 years agoFix nan output in the printf family.
Elliott Hughes [Tue, 16 Dec 2014 22:45:32 +0000 (14:45 -0800)]
Fix nan output in the printf family.

Bug: https://code.google.com/p/android/issues/detail?id=82452
Change-Id: I51f226c8b033de6e81baeea5e6db3de6ed196f73

9 years agoRemove more BSD cruft from the public headers.
Elliott Hughes [Sat, 20 Dec 2014 03:30:11 +0000 (19:30 -0800)]
Remove more BSD cruft from the public headers.

Change-Id: I1e3097f745b526db448bf72fbc05fb2ba23929a0

9 years agoMerge "Move gethtnamaddr.c to net/ subdirectory."
Yabin Cui [Sat, 20 Dec 2014 03:16:04 +0000 (03:16 +0000)]
Merge "Move gethtnamaddr.c to net/ subdirectory."

9 years agoMove gethtnamaddr.c to net/ subdirectory.
Yabin Cui [Sat, 20 Dec 2014 01:29:04 +0000 (17:29 -0800)]
Move gethtnamaddr.c to net/ subdirectory.

It may be the better place to stay.

Change-Id: I517cc2769f63e1873191768c4732907c14f2c60e

9 years agoMerge "Remove t->tls==NULL check in pthread_key_delete."
Yabin Cui [Sat, 20 Dec 2014 00:44:41 +0000 (00:44 +0000)]
Merge "Remove t->tls==NULL check in pthread_key_delete."

9 years agoRemove t->tls==NULL check in pthread_key_delete.
Yabin Cui [Sat, 20 Dec 2014 00:31:03 +0000 (16:31 -0800)]
Remove t->tls==NULL check in pthread_key_delete.

Change-Id: I6c0c71d30fe9d5b888752a4204abd95d5149bb96

9 years agoMerge "Use mmap to create the pthread_internal_t"
Yabin Cui [Sat, 20 Dec 2014 00:10:38 +0000 (00:10 +0000)]
Merge "Use mmap to create the pthread_internal_t"

9 years agoUse mmap to create the pthread_internal_t
Yabin Cui [Thu, 4 Dec 2014 05:36:24 +0000 (21:36 -0800)]
Use mmap to create the pthread_internal_t

Add name to mmaped regions.
Add pthread benchmark code.
Allocate pthread_internal_t on regular stack.

Bug: 16847284
Change-Id: Id60835163bb0d68092241f1a118015b5a8f85069

9 years agoMerge "Support gethostbyname_r_ERANGE."
Yabin Cui [Fri, 19 Dec 2014 22:53:25 +0000 (22:53 +0000)]
Merge "Support gethostbyname_r_ERANGE."

9 years agoSupport gethostbyname_r_ERANGE.
Yabin Cui [Fri, 19 Dec 2014 18:10:04 +0000 (10:10 -0800)]
Support gethostbyname_r_ERANGE.

Bug: 18802601
Change-Id: Iaa64921e96f91e330f1845c5399ee8aba39d9c10

9 years agoMerge "Add support for DT_MIPS_RLD_MAP2 tag."
Dimitry Ivanov [Fri, 19 Dec 2014 21:15:01 +0000 (21:15 +0000)]
Merge "Add support for DT_MIPS_RLD_MAP2 tag."

9 years agoAdd support for DT_MIPS_RLD_MAP2 tag.
Raghu Gandham [Fri, 19 Dec 2014 03:12:19 +0000 (19:12 -0800)]
Add support for DT_MIPS_RLD_MAP2 tag.

Position Independent Executables cannot communicate with GDB using DT_MIPS_RLD_TAG.
Hence a new tag DT_MIPS_RLD_MAP2 got introduced to fix the issue.

Change-Id: I77ce3faf1ef2e121003b804ecd291abb25cfbb56
Signed-off-by: Nikola Veljkovic<Nikola.Veljkovic@imgtec.com>
9 years agoMerge "Must use Clang assembler for mips target."
Chih-Hung Hsieh [Fri, 19 Dec 2014 01:27:22 +0000 (01:27 +0000)]
Merge "Must use Clang assembler for mips target."

9 years agoMust use Clang assembler for mips target.
Chih-Hung Hsieh [Fri, 19 Dec 2014 01:10:56 +0000 (17:10 -0800)]
Must use Clang assembler for mips target.

GNU assembler has internal error with clang's output.

BUG: 18807290
Change-Id: Iabbe991720fc562884f19d79bded903505fc891d

9 years agoMerge "Update bionic NOTICE files."
Elliott Hughes [Fri, 19 Dec 2014 01:10:36 +0000 (01:10 +0000)]
Merge "Update bionic NOTICE files."

9 years agoUpdate bionic NOTICE files.
Elliott Hughes [Fri, 19 Dec 2014 00:27:30 +0000 (16:27 -0800)]
Update bionic NOTICE files.

Change-Id: Ic280872ef3137febd9d4a87d5c7662e264692071

9 years agoMerge "Fix the types of some of the struct stat fields."
Elliott Hughes [Thu, 18 Dec 2014 23:38:26 +0000 (23:38 +0000)]
Merge "Fix the types of some of the struct stat fields."

9 years agoMerge "Remove bogus #include <endian.h> from <sys/stat.h>."
Elliott Hughes [Thu, 18 Dec 2014 23:24:25 +0000 (23:24 +0000)]
Merge "Remove bogus #include <endian.h> from <sys/stat.h>."

9 years agoFix the types of some of the struct stat fields.
Elliott Hughes [Thu, 18 Dec 2014 23:17:42 +0000 (15:17 -0800)]
Fix the types of some of the struct stat fields.

Bug: 17062519
Change-Id: I5207867939f3c2876bf6448e565fa4364aa7e4f0

9 years agoMerge "Split the shared group data from the shared passwd data."
Elliott Hughes [Thu, 18 Dec 2014 23:12:44 +0000 (23:12 +0000)]
Merge "Split the shared group data from the shared passwd data."

9 years agoRemove bogus #include <endian.h> from <sys/stat.h>.
Elliott Hughes [Thu, 18 Dec 2014 23:10:19 +0000 (15:10 -0800)]
Remove bogus #include <endian.h> from <sys/stat.h>.

Bug: 17062519
Change-Id: I3dc21ee8b90580f112c73c72aff5d3bec4778026

9 years agoMerge "Fix struct stat member types for x86-64."
Elliott Hughes [Thu, 18 Dec 2014 23:05:19 +0000 (23:05 +0000)]
Merge "Fix struct stat member types for x86-64."

9 years agoFix struct stat member types for x86-64.
Elliott Hughes [Thu, 18 Dec 2014 20:38:44 +0000 (12:38 -0800)]
Fix struct stat member types for x86-64.

Bug: 17062519
Change-Id: I93b1e8b1d4b6918ab7c3a985e2f7da277077375e

9 years agoSplit the shared group data from the shared passwd data.
Elliott Hughes [Thu, 18 Dec 2014 21:36:25 +0000 (13:36 -0800)]
Split the shared group data from the shared passwd data.

Found by the toybox id(1) which calls both getpwuid(3) and getgrgid(3) before
looking at either result. The use of a shared buffer in this code meant that
even on a single thread, the data for any of the passwd functions would be
clobbered by the data for any of the group functions (or vice versa).

This might seem like an insufficient fix, but POSIX explicitly says (for
getpwnam) that the result "might be overwritten by a subsequent call to
getpwent(), getpwnam(), or getpwuid()" and likewise for other members of
that group, plus equivalent text for the group-related functions.

Change-Id: I2272f47e91f72e043fdaf7c169fa9f6978ff4370

9 years agoMerge "Disable ASAN for more of our libraries."
Dan Albert [Thu, 18 Dec 2014 16:07:14 +0000 (16:07 +0000)]
Merge "Disable ASAN for more of our libraries."

9 years agoDisable ASAN for more of our libraries.
Dan Albert [Thu, 18 Dec 2014 16:03:49 +0000 (08:03 -0800)]
Disable ASAN for more of our libraries.

Since ASAN depends on these libraries, we need to exclude them from
being instrumented.

Change-Id: I62005b6d04ee7b2283c4bd54ace5304386c67358

9 years agoMerge "Sync with upstream for gethnamaddr.c."
Yabin Cui [Thu, 18 Dec 2014 01:06:10 +0000 (01:06 +0000)]
Merge "Sync with upstream for gethnamaddr.c."

9 years agoSync with upstream for gethnamaddr.c.
Yabin Cui [Wed, 17 Dec 2014 01:03:44 +0000 (17:03 -0800)]
Sync with upstream for gethnamaddr.c.

Bug: 18566967
Change-Id: I37e7410226b49eec67614e20b2c1d5e3e47817a5

9 years agoMerge "Add another test for weak-reference"
Dmitriy Ivanov [Tue, 16 Dec 2014 22:01:47 +0000 (22:01 +0000)]
Merge "Add another test for weak-reference"

9 years agoAdd another test for weak-reference
Dmitriy Ivanov [Tue, 16 Dec 2014 19:40:46 +0000 (11:40 -0800)]
Add another test for weak-reference

  This one covers undefined weak reference in .so
  referenced via JUMP_SLOT relocation.

Bug: 17526061
Change-Id: Ib8764bd30c1f686c4818ebbc6683cf42dee908b2

9 years agoMerge "Fix <net/route.h>."
Elliott Hughes [Tue, 16 Dec 2014 16:53:24 +0000 (16:53 +0000)]
Merge "Fix <net/route.h>."

9 years agoFix <net/route.h>.
Elliott Hughes [Tue, 16 Dec 2014 02:47:14 +0000 (18:47 -0800)]
Fix <net/route.h>.

Previously it couldn't be included alone. Also add a header and include guard,
and fix its siblings' include guards.

Bug: https://code.google.com/p/android/issues/detail?id=82638
Change-Id: I32139a4bda0a6b015508a2319bf4e1a1453345f2

9 years agoMerge "Move the generic arm memcmp.S into the generic directory."
Elliott Hughes [Mon, 15 Dec 2014 19:32:41 +0000 (19:32 +0000)]
Merge "Move the generic arm memcmp.S into the generic directory."

9 years agoMove the generic arm memcmp.S into the generic directory.
Elliott Hughes [Mon, 15 Dec 2014 19:06:34 +0000 (11:06 -0800)]
Move the generic arm memcmp.S into the generic directory.

Change-Id: I48e4d14a0dcddbb246edbac6d0329619574ab44d

9 years agoMerge "Remove arm assembler not referenced from any makefile."
Elliott Hughes [Mon, 15 Dec 2014 18:46:16 +0000 (18:46 +0000)]
Merge "Remove arm assembler not referenced from any makefile."

9 years agoRemove arm assembler not referenced from any makefile.
Elliott Hughes [Mon, 15 Dec 2014 01:52:32 +0000 (17:52 -0800)]
Remove arm assembler not referenced from any makefile.

I also suspect that libc/arch-arm/bionic/memcmp.S is supposed to like in the
generic directory these days, but this change just removes dead code.

Change-Id: I9072488df6e9b7261d79b6014914a0e937cb387b