Elliott Hughes
2780476778
am 226f970a
: am a122c376
: Merge "Use __inline__ for fortify."
...
* commit '226f970a17bb212af11133fbcd92289cc88cc0c8':
Use __inline__ for fortify.
2014-02-04 00:06:08 +00:00
Elliott Hughes
8d60cc6316
Use __inline__ for fortify.
...
libunwind has #define inline /* empty */ which breaks our fortified headers.
glibc uses __inline but our BSD-derived headers often override that. __inline__
is the third alternative understood by GCC that -- as far as I know -- neither
the C library itself nor third-party code tries to mess with.
Bug: 12871594
Change-Id: I6677e70ea531bb7d4c46021b43af760d4ad8ecf7
2014-02-03 15:41:57 -08:00
Arve Hjønnevåg
ba7c3079bf
am eb26da9a
: am fb4da1e7
: Merge "Regenerate binder header"
...
* commit 'eb26da9af841c60e69f44a3affb46ec48fdaa6d3':
Regenerate binder header
2014-02-03 22:11:16 +00:00
Arve Hjønnevåg
fb4da1e7b7
Merge "Regenerate binder header"
2014-02-03 21:13:23 +00:00
Elliott Hughes
9304f2c461
am 0e0ae17d
: am 47ff6b9f
: Merge "Add missing ucontext_t definition to bionic for arch-arm64."
...
* commit '0e0ae17d3292951cbf74143c44b583916ebebff6':
Add missing ucontext_t definition to bionic for arch-arm64.
2014-01-31 22:38:27 +00:00
Elliott Hughes
47ff6b9faa
Merge "Add missing ucontext_t definition to bionic for arch-arm64."
2014-01-31 18:51:36 +00:00
Elliott Hughes
f970e07de3
am 8902d9a9
: am a14df4a9
: Merge "[MIPS] SA_RESTORER support is not needed for MIPS"
...
* commit '8902d9a944c377c63ce81d7dc16c1945ad715d18':
[MIPS] SA_RESTORER support is not needed for MIPS
2014-01-31 16:19:40 +00:00
Elliott Hughes
da958d2e14
am 64b519e2
: am 07f84025
: Merge "Make ARM <user.h> more glibc-compatible."
...
* commit '64b519e2d4546da414bb9a04de4c04ce3e137999':
Make ARM <user.h> more glibc-compatible.
2014-01-31 16:19:39 +00:00
Elliott Hughes
ab24c54d94
am dc84a5e6
: am 53a55c12
: Merge "Add mips <sys/ucontext.h>."
...
* commit 'dc84a5e66c9678619538b42709ab3637205c3bf2':
Add mips <sys/ucontext.h>.
2014-01-31 16:19:38 +00:00
Elliott Hughes
5c73920bdc
am d7f2ec93
: am 807bbb75
: Merge "Add arm <sys/ucontext.h>."
...
* commit 'd7f2ec93449a478710c286588818d00f8f219272':
Add arm <sys/ucontext.h>.
2014-01-31 16:19:38 +00:00
Elliott Hughes
ae4e016d7f
am 2f561425
: am 8f355275
: Merge "Add x86 <sys/ucontext.h>."
...
* commit '2f561425bf43676ab244738fb6ea4ed868208837':
Add x86 <sys/ucontext.h>.
2014-01-31 16:19:37 +00:00
Elliott Hughes
63704af86e
am 4dc8c880
: am 972c39c4
: Merge "Add x86_64 ucontext.h for better compatibility"
...
* commit '4dc8c880ca0677baad7950b0b3f5a9f035fea11b':
Add x86_64 ucontext.h for better compatibility
2014-01-31 16:19:36 +00:00
Ross McIlroy
7b95807fa0
Add missing ucontext_t definition to bionic for arch-arm64.
...
Change-Id: I1ee15230c63e00f01d2063cfffcffe7f1a1eeb6a
2014-01-31 04:45:53 +00:00
Chris Dearman
46f3db6bb8
[MIPS] SA_RESTORER support is not needed for MIPS
...
Change-Id: I1c000c94973e811193c80c9770da4f3157594f90
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Duane Sand <duane.sand@imgtec.com>
2014-01-30 20:39:53 -08:00
Elliott Hughes
3614424e10
Make ARM <user.h> more glibc-compatible.
...
Change-Id: I681930ad7f80a5e7bc40eb0f36872e415445f0f9
2014-01-30 10:39:02 -08:00
Elliott Hughes
02c661b883
Add mips <sys/ucontext.h>.
...
Change-Id: I2821f523f0c3bb4400b2ad5d36e21e5a3d6d777c
2014-01-29 18:37:15 -08:00
Elliott Hughes
4e72fcc3c2
Add arm <sys/ucontext.h>.
...
Change-Id: I14d435f9e3e82f77d8a7e886ff88c18f5d09d14a
2014-01-29 17:53:59 -08:00
Elliott Hughes
677a07cb9a
Add x86 <sys/ucontext.h>.
...
Change-Id: I43e72604f7a932f134733b78094b577415a5edb7
2014-01-29 16:46:00 -08:00
Pavel Chupin
e61d106008
Add x86_64 ucontext.h for better compatibility
...
As suggested here: https://android-review.googlesource.com/#/c/71267/
it may be used for x86_64 libunwind enabling.
Change-Id: I21623261a48ea7099e030d33932556e294d226ff
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2014-01-29 15:35:33 -08:00
Elliott Hughes
37958fea13
am 2db157c8
: am 3bd75303
: am c75e7726
: Merge "Remove a __system_property_get call from the DNS code."
...
* commit '2db157c853cb35243d49fd1e084c1fb444f9ba02':
Remove a __system_property_get call from the DNS code.
2014-01-29 12:20:44 +00:00
Arve Hjønnevåg
fbaa254016
Regenerate binder header
...
Adds 64 bit support
Change-Id: I6db3c4f68bf2c337bff753599af193e2b062ec05
2014-01-28 19:29:46 -08:00
Elliott Hughes
908e8c24ab
Remove a __system_property_get call from the DNS code.
...
Change-Id: I48082ad9eb1b56349c6746ab2c371728c8571a81
2014-01-28 14:54:11 -08:00
Elliott Hughes
a873595113
am 41ae96a1
: am 4bc229eb
: am 4449fe96
: Merge "Fix 32-bit mmap/mmap64 handling of negative offsets."
...
* commit '41ae96a1cc69fd2e1bc39fe55da22f15047beb50':
Fix 32-bit mmap/mmap64 handling of negative offsets.
2014-01-28 01:18:06 +00:00
Elliott Hughes
431166d995
Fix 32-bit mmap/mmap64 handling of negative offsets.
...
We don't actually need to worry about sign extension if we reject
negative values ourselves. Previously it was possible to come up
with negative but aligned values that we would pass to the kernel;
in the case of mmap (as opposed to mmap64) we'd incorrectly turn
those into large positive offsets.
Change-Id: I2aa583e0f892d59bb77429aea8730b72db32dcb0
2014-01-27 16:36:56 -08:00
Elliott Hughes
4332c9ebba
am e528d178
: am f3ea7917
: am 6f23ce36
: Merge "Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64)."
...
* commit 'e528d1787c80d4d6879c8fafa5487f9fd6ce4a29':
Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64).
2014-01-25 01:38:13 +00:00
Elliott Hughes
6f23ce36ce
Merge "Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64)."
2014-01-25 01:25:16 +00:00
Elliott Hughes
e2a292d278
Remove __STDC_FORMAT_MACROS and __STDC_LIMIT_MACROS guards (and fix SIZE_MAX for LP64).
...
The various committees decided that everyone should get all these macros,
all the time.
Bug: 12708004
Change-Id: Ib56010dcba9b0656e5701546fefb7f78dc0bf916
2014-01-24 16:38:07 -08:00
Ben Cheng
d1e32e1c35
am 0bae4c4d
: am 50228472
: am 5acce960
: Merge "Add all implicitly loaded symbols from libgcc.a into libgcc_compat.c."
...
* commit '0bae4c4d41acffa091680a5499e0381e1ea70f12':
Add all implicitly loaded symbols from libgcc.a into libgcc_compat.c.
2014-01-25 00:26:01 +00:00
Ben Cheng
62ffe14a7e
Add all implicitly loaded symbols from libgcc.a into libgcc_compat.c.
...
Change-Id: I0e66a73e849a01817d016a688d7291c2fb604e48
2014-01-24 15:20:11 -08:00
Colin Cross
771524267b
am 3aa1e605
: am 35377004
: am 513f83bb
: Merge "bionic: rename aarch64 target to arm64"
...
* commit '3aa1e605ea1167e59976bf82922fd06c728b518b':
bionic: rename aarch64 target to arm64
2014-01-24 21:24:50 +00:00
Colin Cross
513f83bb7f
Merge "bionic: rename aarch64 target to arm64"
2014-01-24 20:33:23 +00:00
Ben Cheng
af0debbfc7
am cc70de8f
: am 0661bbe2
: am 69d242d2
: Merge "Re-export libgcc\'s __aeabi_uidivmod and __popcount_tab"
...
* commit 'cc70de8fc3726cf8cc242a4dcb80a7f5af50f4b1':
Re-export libgcc's __aeabi_uidivmod and __popcount_tab
2014-01-24 18:25:55 +00:00
Bernhard Rosenkränzer
f38fb19d9d
Re-export libgcc's __aeabi_uidivmod and __popcount_tab
...
This is required to make the Nexus 10 graphics driver work on a system
compiled with gcc 4.9.
Change-Id: If3f3d488652a736d9ea3e583548d74fae3ffa902
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2014-01-24 12:57:13 +01:00
Colin Cross
d1973ca513
bionic: rename aarch64 target to arm64
...
Rename aarch64 build targets to arm64. The gcc toolchain is still
aarch64.
Change-Id: Ia92d8a50824e5329cf00fd6f4f92eae112b7f3a3
2014-01-23 18:35:39 -08:00
Elliott Hughes
232e52e90b
am 17758106
: am 06d38ccd
: am 5b4884fa
: Merge "Add "__noreturn" to assert and assert2"
...
* commit '17758106e80d9ced66c7cfdae0b0331ebd7696b7':
Add "__noreturn" to assert and assert2
2014-01-15 21:41:21 +00:00
Elliott Hughes
5b4884fac9
Merge "Add "__noreturn" to assert and assert2"
2014-01-15 21:26:47 +00:00
Vadim Markovtsev
323d4b6f68
Add "__noreturn" to assert and assert2
...
These functions should print assertion violation messages and then
call abort(). They do really not return control flow afterwards.
Consider the declaration of the similar __assert_fail from glibc:
extern void __assert_fail (const char *__assertion,
const char *__file,
unsigned int __line,
const char *__function)
__THROW __attribute__ ((__noreturn__));
Bionic has __noreturn defined in sys/cdefs.h to be that GNU
noreturn attribute.
This patch has a practical value. Consider the following function:
void check(void* ptr) {
assert(ptr != NULL);
}
Without this patch applied, gcc (and presumably clang) shows even in
debug mode:
warning: unused parameter 'ptr' [-Wunused-parameter]
In release mode, NDEBUG is defined and assert() becomes a no-op, as
one should expect. Thus, the warning is shown correctly then.
Another code sample:
float array[2];
int i = 3;
...
assert(i < 2);
array[i] = 0;
gcc says,
warning: array subscript is below array bounds [-Warray-bounds]
In other words, without noreturn attribute, assertions do not
allow a compiler's static analyzer to properly understand
the preconditions.
Change-Id: I3be92e99787c528899cf243ed448c4730c00c45b
Signed-off-by: Vadim Markovtsev <gmarkhor@gmail.com>
2014-01-15 07:32:52 +00:00
Elliott Hughes
63ccebf3f3
am e83c98e6
: am a17b7ba9
: am c8d41263
: Merge "Move _thread_created_hook to where it belongs."
...
* commit 'e83c98e6f7575000df7e36803c5349249f8aa982':
Move _thread_created_hook to where it belongs.
2014-01-15 02:48:31 +00:00
Elliott Hughes
af8aebebb5
Move _thread_created_hook to where it belongs.
...
Change-Id: I643d761c78ccaae25270aeffa2afb811c4e2fcd7
2014-01-14 17:16:18 -08:00
Elliott Hughes
41af7f39e9
am d2124b7c
: am 7e997388
: am b5e21103
: Merge "AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()"
...
* commit 'd2124b7c5ca15cb593c824d2488f6a95dce4a519':
AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()
2014-01-14 01:15:04 +00:00
Elliott Hughes
b5e211031b
Merge "AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()"
2014-01-14 01:01:41 +00:00
Elliott Hughes
758e586a98
am 0b9a13f5
: am a1595487
: am ae189740
: Merge "Add some more headers."
...
* commit '0b9a13f58fa13fc7f29c386e265dcbe56c7c5095':
Add some more headers.
2014-01-10 23:55:16 +00:00
Elliott Hughes
ae189740de
Merge "Add some more headers."
2014-01-10 23:35:47 +00:00
Elliott Hughes
c835c35727
Add some more headers.
...
This patch adds trivial implementations of the missing sys headers
needed by strace. All strace needs are the constants and structures,
so this is enough for now. We can come back and add the functions
if/when we ever need them.
Change-Id: Idb87c1a8b6b1c62f6e16ae94f147e1169722b48e
2014-01-10 15:32:31 -08:00
JP Abgrall
9a3f2b78e6
am 51e1ca76
: am 09a73562
: am f784f036
: Merge "Add extra libc stubs for mntent related functions."
...
* commit '51e1ca76776822e3d020a1dc7e25dbc46ddde1e4':
Add extra libc stubs for mntent related functions.
2014-01-10 02:08:05 +00:00
Elliott Hughes
a537a330a4
am e48e9c99
: am 2872e742
: am 33c3e8d3
: Merge "Add NT_PRSTATUS to <elf.h>."
...
* commit 'e48e9c9919f1f1130ff09600f6c444e2f3be1689':
Add NT_PRSTATUS to <elf.h>.
2014-01-10 01:54:25 +00:00
JP Abgrall
4e9cb032d1
Add extra libc stubs for mntent related functions.
...
This adds stubs for setmntent() and endmntent().
Change-Id: I6ccaa044145405cd7226c1c54a25d435c96a2308
2014-01-10 01:24:34 +00:00
Elliott Hughes
8667765896
am 1424b701
: am fce55ed3
: am 8e6bf35a
: Merge "Add <sgidefs.h>."
...
* commit '1424b70152a1cacbfb3125a49b01d158f4028152':
Add <sgidefs.h>.
2014-01-10 00:23:15 +00:00
Elliott Hughes
d36126ddc3
am fb12b9a7
: am ea7c0ea6
: am d29c75f0
: Merge "Fix x86 user_regs_struct."
...
* commit 'fb12b9a7a3f6b0d91a201d4f39134edddc93c07c':
Fix x86 user_regs_struct.
2014-01-10 00:23:14 +00:00
Elliott Hughes
f39f8f4414
am 2a25c30e
: am c63fe9fa
: am 6114ffb3
: Merge "Add the glibc-compatible d_fileno."
...
* commit '2a25c30e33ecf2170709f5ff89588c81480dd23d':
Add the glibc-compatible d_fileno.
2014-01-10 00:07:22 +00:00