Commit Graph

7370 Commits

Author SHA1 Message Date
Elliott Hughes
2b5503b578 am dbcba8f5: Merge "Reduce stack usage of tmpfile(3)."
* commit 'dbcba8f5f9a59fac3d22dfc17a14d3d5cfb4f4b0':
  Reduce stack usage of tmpfile(3).
2014-05-13 17:37:22 +00:00
Elliott Hughes
dbcba8f5f9 Merge "Reduce stack usage of tmpfile(3)." 2014-05-13 17:32:48 +00:00
Calin Juravle
66faa0c21f am f34f0ccb: Merge "Use __LP64__ instead of __LP32__ in sched.h"
* commit 'f34f0ccb0e1d1c6df5f60bbfc44983263f89164d':
  Use __LP64__ instead of __LP32__ in sched.h
2014-05-13 17:21:29 +00:00
Calin Juravle
f34f0ccb0e Merge "Use __LP64__ instead of __LP32__ in sched.h" 2014-05-13 17:16:30 +00:00
Elliott Hughes
b6943186ce Reduce stack usage of tmpfile(3).
Also ensure that none of our home-grown code uses more than 2KiB per frame.

Change-Id: I8987a17d72f4b7f082bb7fa25e137c8433664c14
2014-05-13 10:14:22 -07:00
Dmitriy Ivanov
f4846a3ab6 am d44927b8: Merge "Refactor linker allocator"
* commit 'd44927b8e9f4b2bcd376d1f84bad46f3ba9094de':
  Refactor linker allocator
2014-05-13 15:52:15 +00:00
Dmitriy Ivanov
d44927b8e9 Merge "Refactor linker allocator" 2014-05-13 15:49:18 +00:00
Calin Juravle
dd09699fae Use __LP64__ instead of __LP32__ in sched.h
Gcc defines only __LP64__ so testing __LP32__ will always be false.

Bug: 14881256
Change-Id: Ic63c1d562be09c3eb4b9e17c9e5ef2d9e404db80
2014-05-13 16:07:28 +01:00
Calin Juravle
d9f0e8f2e0 am ddda264f: Merge "Undef private *_BODY defines after use"
* commit 'ddda264f1b3bf7627042c2d197d85044cac04564':
  Undef private *_BODY defines after use
2014-05-13 10:34:20 +00:00
Calin Juravle
ddda264f1b Merge "Undef private *_BODY defines after use" 2014-05-13 10:31:07 +00:00
Calin Juravle
f963da22ec Undef private *_BODY defines after use
Bug: 14865741
Change-Id: I1398f7b3f64e3c94f2714cede5b61205dfa78a24
2014-05-13 11:01:11 +01:00
Calin Juravle
c291db129b am 38967f3d: Merge "Add fpos_t tests."
* commit '38967f3d1fbc9326beb7eef8c084b334e9bd65f5':
  Add fpos_t tests.
2014-05-13 09:40:29 +00:00
Calin Juravle
e0913cd449 am e788f5e0: Merge "Support mb sequences across calls to mb*to*wcs* functions"
* commit 'e788f5e04b4618a2f51865f60b2d482dac50e05a':
  Support mb sequences across calls to mb*to*wcs* functions
2014-05-13 09:40:28 +00:00
Calin Juravle
38967f3d1f Merge "Add fpos_t tests." 2014-05-13 09:37:08 +00:00
Calin Juravle
e788f5e04b Merge "Support mb sequences across calls to mb*to*wcs* functions" 2014-05-13 09:36:01 +00:00
Dmitriy Ivanov
d597d263bc Refactor linker allocator
Makes it reusable for different fixed sized and not very
big structures (<PAGE_SIZE).

Change-Id: Id5ec13fc6541b1935ef7fe3671c22b98685abbae
2014-05-12 21:40:09 -07:00
Christopher Ferris
199e830a88 am 1abb1b93: Merge "Add 64-bit Silvermont-optimized string/memory functions."
* commit '1abb1b939d318513066ef580377cc3659ceac8ef':
  Add 64-bit Silvermont-optimized string/memory functions.
2014-05-13 00:52:06 +00:00
Christopher Ferris
1abb1b939d Merge "Add 64-bit Silvermont-optimized string/memory functions." 2014-05-13 00:48:40 +00:00
Varvara Rainchik
a020a244ae Add 64-bit Silvermont-optimized string/memory functions.
Add following functions:
bcopy, bzero, memcpy, memmove, memset, stpcpy, stpncpy, strcat, strcpy,
strlen, strncat, strncpy, memcmp, strcmp, strncmp.
Set all these functions as the default ones.

Change-Id: Ic66b250ad8c349a43d25e2d4dea075604f6df6ac
Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
2014-05-12 17:37:07 -07:00
Christopher Ferris
5a3303dad5 am c1d26965: Merge "Add 32-bit Silvermont-optimized string/memory functions."
* commit 'c1d26965ae12f94c7b0dc64b2548c3c29d180296':
  Add 32-bit Silvermont-optimized string/memory functions.
2014-05-13 00:30:07 +00:00
Christopher Ferris
c1d26965ae Merge "Add 32-bit Silvermont-optimized string/memory functions." 2014-05-13 00:26:50 +00:00
Calin Juravle
03e4ebee8d Add fpos_t tests.
Bug: 13077905

Change-Id: I86bb0ee95660f69f9971231c6f828a3a067d1ac8
2014-05-13 00:39:08 +01:00
Calin Juravle
15a6310e4b Support mb sequences across calls to mb*to*wcs* functions
Bug: 13077905
Change-Id: I5abdc7cc3c27c109b7900c94b112f18a95c35763
2014-05-13 00:24:25 +01:00
Elliott Hughes
0b1a2ee781 am 8b307e0e: Merge "Remove the useless indirection in mips\' __set_tls."
* commit '8b307e0e9843aad7e1816eb631208117df2e787b':
  Remove the useless indirection in mips' __set_tls.
2014-05-12 23:18:32 +00:00
Elliott Hughes
8b307e0e98 Merge "Remove the useless indirection in mips' __set_tls." 2014-05-12 23:14:51 +00:00
Elliott Hughes
dcbef06ce6 Remove the useless indirection in mips' __set_tls.
Change-Id: I12e9d6716c42ccbccc9a186441aca0736bb22d05
2014-05-12 16:11:06 -07:00
Elliott Hughes
14d02ac74c am 2b18b107: Merge "Fix use-after-free errors in stdio_test."
* commit '2b18b10710995834e955658aedad3fdb2f994af8':
  Fix use-after-free errors in stdio_test.
2014-05-12 22:35:02 +00:00
Elliott Hughes
2b18b10710 Merge "Fix use-after-free errors in stdio_test." 2014-05-12 22:30:41 +00:00
Elliott Hughes
20f8aec897 Fix use-after-free errors in stdio_test.
fclose(3) frees the passed-in FILE*. We should close(2) the underlying fd,
not fclose(3) the stream, if we want to test what happens with a stream
we can't read from.

Bug: 14466691
Change-Id: I99fed5904b0266b9c6ae05d0b9cf2e926446c064
2014-05-12 15:15:37 -07:00
Varvara Rainchik
5a92284167 Add 32-bit Silvermont-optimized string/memory functions.
Add following functions:
bcopy, memcpy, memmove, memset, bzero, memcmp, wmemcmp, strlen,
strcpy, strncpy, stpcpy, stpncpy.
Create new directories inside arch-x86 to specify architecture: atom,
silvermont and generic (non atom or silvermont architectures are treated like generic).
Due to introducing optimized versions of stpcpy and stpncpy,
c-implementations of these functions are moved from
common for architectures makefile to arm and mips specific makefiles.

Change-Id: I990f8061c3e9bca1f154119303da9e781c5d086e
Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
2014-05-12 13:56:59 -07:00
Dmitriy Ivanov
fe4233e589 am ebcc7207: Merge "Cleanup: updated comments"
* commit 'ebcc72070499b2ab2d1dee990d6f52814a56600e':
  Cleanup: updated comments
2014-05-12 18:54:45 +00:00
Dmitriy Ivanov
ebcc720704 Merge "Cleanup: updated comments" 2014-05-12 18:49:35 +00:00
Dmitriy Ivanov
6275f20834 Cleanup: updated comments
Bug: 14566672
Change-Id: I49ad28e3914b7d559db1e98542fee919db768f49
2014-05-12 11:47:10 -07:00
Dmitriy Ivanov
15989a2b34 am e2997950: Merge "Cleanup: remove AARCH/ARM_COPY relocation support"
* commit 'e29979503a166d51e18e557a16aa8703a0dbdbb9':
  Cleanup: remove AARCH/ARM_COPY relocation support
2014-05-12 17:28:09 +00:00
Dmitriy Ivanov
e29979503a Merge "Cleanup: remove AARCH/ARM_COPY relocation support" 2014-05-12 17:21:35 +00:00
Dmitriy Ivanov
b906e13c55 Cleanup: remove AARCH/ARM_COPY relocation support
They are only legal for ET_EXEC binaries and these are no
longer supported.

Bug: 14566672
Change-Id: I99e0ff47e8c572db474bc5e52df870a72269abb3
2014-05-12 09:06:14 -07:00
Calin Juravle
e032a18c97 am d67c6af2: Merge "Reserve space for the future in statvfs(64)"
* commit 'd67c6af2f6767b057546e80cb90818e0efccce96':
  Reserve space for the future in statvfs(64)
2014-05-12 10:03:05 +00:00
Calin Juravle
d67c6af2f6 Merge "Reserve space for the future in statvfs(64)" 2014-05-12 09:59:57 +00:00
Calin Juravle
60e1132460 am 4d695bf5: Merge "Align struct passwd definition with other variations of libc"
* commit '4d695bf5606f2cf4029a7ff4e6dd61073407d3b0':
  Align struct passwd definition with other variations of libc
2014-05-12 09:58:20 +00:00
Calin Juravle
7bec1212c7 Reserve space for the future in statvfs(64)
The kernel struct has some spare space at the end too, and some extra
fields, so having a bit of flexibility in statvfs might be worthwhile.

Bug: 14681331
Bug: 12875898
Change-Id: I5b502c5dd9d2e3bb8f34804f83c02669cefce01e
2014-05-12 10:56:39 +01:00
Calin Juravle
4d695bf560 Merge "Align struct passwd definition with other variations of libc" 2014-05-12 09:53:41 +00:00
Elliott Hughes
cf113ab91d am 4b57305a: Merge "Bring in google3-style DISALLOW_* macros."
* commit '4b57305afe2b54a6afb733361f6fd93cb92ccfa8':
  Bring in google3-style DISALLOW_* macros.
2014-05-10 03:37:14 +00:00
Elliott Hughes
4b57305afe Merge "Bring in google3-style DISALLOW_* macros." 2014-05-10 03:32:28 +00:00
Elliott Hughes
8eac9af24e Bring in google3-style DISALLOW_* macros.
I've been meaning to do this for a very long time...

Change-Id: Ia8c16eee7c026c3c9505399948485fb778fb0152
2014-05-09 19:12:08 -07:00
Elliott Hughes
c66df5e92d am b2c3c803: Merge "Align the child stack in clone(2)."
* commit 'b2c3c803f0f4a50acfdc31eb28bd83b48a0026fe':
  Align the child stack in clone(2).
2014-05-10 00:42:01 +00:00
Elliott Hughes
b2c3c803f0 Merge "Align the child stack in clone(2)." 2014-05-10 00:38:51 +00:00
Elliott Hughes
0d236aa3f1 Align the child stack in clone(2).
Also let clone(2) set the TLS for x86.

Also ensure we initialize the TLS before we clone(2) for all architectures.

Change-Id: Ie5fa4466e1c9ee116a281dfedef574c5ba60c0b5
2014-05-09 17:06:51 -07:00
Elliott Hughes
0db4c69087 am 8fa5c252: Merge "Align arm64 stacks to 16 bytes in __bionic_clone."
* commit '8fa5c2528c04df00f9f9a3dc4047ae88d3f13524':
  Align arm64 stacks to 16 bytes in __bionic_clone.
2014-05-09 21:31:44 +00:00
Calin Juravle
c768874c66 Align struct passwd definition with other variations of libc
Add pg_gecos ("real name") field to struct passwd.

Bug: 14679430
Bug: 12875898
Change-Id: I833ec2c46f6a6259b7232a8e3f7942968ef0b50d
2014-05-09 22:29:23 +01:00
Elliott Hughes
8fa5c2528c Merge "Align arm64 stacks to 16 bytes in __bionic_clone." 2014-05-09 21:28:05 +00:00