Commit Graph

5319 Commits

Author SHA1 Message Date
Elliott Hughes
82d974c7ef am a81fd294: Merge "Fixed ASM_ALIGN macro"
* commit 'a81fd294be55f8781dbf22f381a3335212d8dbd9':
  Fixed ASM_ALIGN macro
2013-10-04 09:26:44 -07:00
Elliott Hughes
a81fd294be Merge "Fixed ASM_ALIGN macro" 2013-10-04 16:25:47 +00:00
Nick Kralevich
ed1f8ea036 am bf452313: Merge "FORTIFY_SOURCE: emphasize prevention in error messages."
* commit 'bf452313b0fcc2a14e55435b93eebd0ead73ad3e':
  FORTIFY_SOURCE: emphasize prevention in error messages.
2013-10-04 09:23:26 -07:00
Nick Kralevich
bf452313b0 Merge "FORTIFY_SOURCE: emphasize prevention in error messages." 2013-10-04 16:20:20 +00:00
Nick Kralevich
e2617290fc FORTIFY_SOURCE: emphasize prevention in error messages.
FORTIFY_SOURCE prevents buffer overflows from occurring.
However, the error message often implies that we only
detect it, not prevent it.

Bring more clarity to the error messages by emphasizing
prevention over detection.

Change-Id: I5f3e1478673bdfc589e6cc4199fce8e52e197a24
2013-10-04 08:57:17 -07:00
Pavel Chupin
719269db18 Fixed ASM_ALIGN macro
Got it all wrong on first patch. Somehow that didn't affect system
build, neither arm nor x86... something to think about.

Change-Id: I45416d843aad44af62841c6f6ab607ccf3f012ea
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2013-10-04 11:12:58 +04:00
Elliott Hughes
7e841ed688 Remove useless x86 fallbacks.
The NDK ABI requires that you support SSE2, and the build system won't let you
build with ARCH_X86_HAVE_SSE2 set to false. So let's stop pretending this
constant is actually a variable, and let's remove the corresponding dead code.

Also, the USE_SSE2 and USE_SSE3 macros are unused, so let's not bother
setting them.

Change-Id: I40b501d998530d22518ce1c4d14575513a8125bb
2013-10-03 23:30:33 -07:00
Elliott Hughes
71e0b240ed am 41ba05e2: Merge "x86_64: Fix get_tls and statvfs"
* commit '41ba05e22ed1829cc7431fd4899cfa5725c76044':
  x86_64: Fix get_tls and statvfs
2013-10-03 21:23:28 -07:00
Elliott Hughes
41ba05e22e Merge "x86_64: Fix get_tls and statvfs" 2013-10-04 00:34:50 +00:00
Pavel Chupin
1e52a54a47 x86_64: Fix get_tls and statvfs
* bionic_tls.h - Add x86_64 version of get_tls macro;
* statvfs.h - 64-bit kernels don't have __statfs64/__fstatfs64, applying
workaround;

Change-Id: I20d7ddad74c7b7243866373d0142da6627c08280
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2013-10-03 17:31:50 -07:00
Elliott Hughes
6d923d4973 am 14102932: Merge "Move common arch-* code to arch-common directory"
* commit '141029327cdc62629e248b3be1d7a58d4e9e5ba8':
  Move common arch-* code to arch-common directory
2013-10-03 16:20:28 -07:00
Elliott Hughes
141029327c Merge "Move common arch-* code to arch-common directory" 2013-10-03 23:17:58 +00:00
Nick Kralevich
687c7e3ece am e8dc673c: Merge "Don\'t export unnecessary symbol."
* commit 'e8dc673ca56556389ad06ce1bb55e6624b4db721':
  Don't export unnecessary symbol.
2013-10-03 15:54:27 -07:00
Nick Kralevich
2e819c58c9 am 2ff3c746: Merge "Check memory size on FD_* functions"
* commit '2ff3c746aeafeac9d1019bed97a99346515516af':
  Check memory size on FD_* functions
2013-10-03 15:54:27 -07:00
Nick Kralevich
e8dc673ca5 Merge "Don't export unnecessary symbol." 2013-10-03 22:52:02 +00:00
Nick Kralevich
2ff3c746ae Merge "Check memory size on FD_* functions" 2013-10-03 22:46:49 +00:00
Nick Kralevich
7943df62f7 Check memory size on FD_* functions
Make sure the buffer we're dealing with has enough room.
Might as well check for memory issues while we're here,
even though I don't imagine they'll happen in practice.

Change-Id: I0ae1f0f06aca9ceb91e58c70183bb14e275b92b5
2013-10-03 15:45:10 -07:00
Nick Kralevich
35c1862cdf Don't export unnecessary symbol.
Change-Id: I8b1d75a08476c41dd8e3f09fc93a3df617928f88
2013-10-03 14:59:05 -07:00
Christopher Ferris
270c52da0d am 1fe477fc: Merge "Add dependencies on included makefiles."
* commit '1fe477fcb77ba29ef3264f689e7002f6512715ab':
  Add dependencies on included makefiles.
2013-10-03 14:40:12 -07:00
Christopher Ferris
1fe477fcb7 Merge "Add dependencies on included makefiles." 2013-10-03 21:35:37 +00:00
Christopher Ferris
d7a632948d Add dependencies on included makefiles.
Bug: 11050594

Merge from internal master.

(cherry-picked from f389284e86)

Change-Id: I2b3e38329a09d26c16870906f9ed1257e2a9dbc8
2013-10-03 14:17:14 -07:00
Christopher Ferris
dc7f8ddc22 am 6088047a: Merge "Remove dead files."
* commit '6088047a64abb1e8a27fcb9868b00a630fbdfed4':
  Remove dead files.
2013-10-03 13:23:45 -07:00
Christopher Ferris
6088047a64 Merge "Remove dead files." 2013-10-03 19:53:21 +00:00
Christopher Ferris
fc4d70fe54 Remove dead files.
memcpy.a15.S/strcmp.a15.S files were submitted by ARM for use as the basis
for the memcpy/strcmp implementations in cortex-a15.

memset.S was moved in to the generic directory.

NOTE: memcpy.a9.S was submitted by Linaro to be the basis for the memcpy
for cortex-a9/cortex-a15 but has not been incorporated yet.

Bug: 10971279

Merge from internal master.

(cherry-picked from 48fc3e8b9f)

Change-Id: I8f9297578990d517f004e4e8840e2b2cbd5a47d8
2013-10-03 12:35:56 -07:00
Pavel Chupin
b49c17c2bf Move common arch-* code to arch-common directory
Will be helpful on adding x86_64

Change-Id: I96cf6fc7912c02f289c75f07ae0079c32d69173f
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2013-10-03 11:14:33 +04:00
Christopher Ferris
0292c1c81d am 3901b1bd: Merge "Remove the __ARM_FEATURE_DSP check."
* commit '3901b1bdd939973a72e01272177757b2524995d3':
  Remove the __ARM_FEATURE_DSP check.
2013-10-02 23:25:08 -07:00
Christopher Ferris
3901b1bdd9 Merge "Remove the __ARM_FEATURE_DSP check." 2013-10-03 06:22:27 +00:00
Christopher Ferris
aec1b3540a Remove the __ARM_FEATURE_DSP check.
The check for __ARM_FEATURE_DSP being defined is pointless since it
is always defined.

Bug: 10971279

Merge from internal master.

(cherry-picked from d2642fa70c)

Change-Id: If23ab3271f4da0c38cd531ffdc9a7e5eed6ec5dc
2013-10-02 23:14:01 -07:00
Elliott Hughes
2a3d760e0f am 00a816e5: Merge "Fix 32-bit issues in tests, and add a trivial test for the FD_* macros."
* commit '00a816e5874153ae3103af869182a81b31445388':
  Fix 32-bit issues in tests, and add a trivial test for the FD_* macros.
2013-10-02 21:02:43 -07:00
Elliott Hughes
00a816e587 Merge "Fix 32-bit issues in tests, and add a trivial test for the FD_* macros." 2013-10-03 04:00:30 +00:00
Elliott Hughes
14d5e22fee am 66b18dd4: Merge "Fix the x86_64 fenv.h."
* commit '66b18dd4e4294de72728f51af61b79f6f7885a2f':
  Fix the x86_64 fenv.h.
2013-10-02 20:50:21 -07:00
Elliott Hughes
66b18dd4e4 Merge "Fix the x86_64 fenv.h." 2013-10-03 03:48:19 +00:00
Elliott Hughes
361847f9ac Fix the x86_64 fenv.h.
We should clean all the fenv.h files up, but not now. I've raised
bug 11050744 as a reminder.

Change-Id: I640c15b0f0477ec1a7891c031860404875bbe4b5
2013-10-02 17:02:58 -07:00
Nick Kralevich
b620193283 am 2c701a1b: Merge "libc: don\'t export unnecessary symbols"
* commit '2c701a1bac2bd852b68f5a2e50c2c60fa82266e0':
  libc: don't export unnecessary symbols
2013-10-02 17:01:22 -07:00
Nick Kralevich
2c701a1bac Merge "libc: don't export unnecessary symbols" 2013-10-02 23:59:23 +00:00
Elliott Hughes
5b9310e502 Fix 32-bit issues in tests, and add a trivial test for the FD_* macros.
Change-Id: Ia3f21ce1f0ed9236527fe44d36ccb7de6bf63113
2013-10-02 16:59:05 -07:00
Nick Kralevich
32bbf8a63b libc: don't export unnecessary symbols
Symbols associated with the internal implementation of memcpy
like routines should be private.

Change-Id: I2b1d1f59006395c29d518c153928437b08f93d16
2013-10-02 16:54:58 -07:00
Nick Kralevich
8598cd6888 am f741e1c2: Merge "FORTIFY_SOURCE: Add __FD_* checks"
* commit 'f741e1c2ed27f153e92a2a36c9db3b189f9a6388':
  FORTIFY_SOURCE: Add __FD_* checks
2013-10-02 16:28:00 -07:00
Nick Kralevich
f741e1c2ed Merge "FORTIFY_SOURCE: Add __FD_* checks" 2013-10-02 23:26:50 +00:00
Nick Kralevich
90201d5eca FORTIFY_SOURCE: Add __FD_* checks
Add FORTIFY_SOURCE checks for the following macros:

* FD_CLR
* FD_ISSET
* FD_SET

Bug: 11047121
Change-Id: I3c5952136aec9eff3288b91b1318677ff971525c
2013-10-02 16:11:30 -07:00
Stephen Hines
1986d36957 am 32c0c6e7: Merge "Use gnu++11 and gnu99 explicitly for C++/C files."
* commit '32c0c6e7d56ea2fad0a362f37bb84937b82c3be2':
  Use gnu++11 and gnu99 explicitly for C++/C files.
2013-10-02 15:20:36 -07:00
Stephen Hines
32c0c6e7d5 Merge "Use gnu++11 and gnu99 explicitly for C++/C files." 2013-10-02 22:18:26 +00:00
Nick Kralevich
f7da611b3d am 00d51c9f: Merge "Use alloc_size attribute on *alloc functions"
* commit '00d51c9f6e9b3f10bddad80b3938ffa553094578':
  Use alloc_size attribute on *alloc functions
2013-10-02 14:35:03 -07:00
Nick Kralevich
00d51c9f6e Merge "Use alloc_size attribute on *alloc functions" 2013-10-02 21:31:43 +00:00
Nick Kralevich
b91791d71c Use alloc_size attribute on *alloc functions
malloc and family were not declared with __attribute__((alloc_size)).
This was (sometimes) preventing FORTIFY_SOURCE related functions
from knowing the size of the buffer it's dealing with, inhibiting
FORTIFY_SOURCE protections.

Add __attribute__((alloc_size))

Information about the alloc_size attribute can be found
at http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html

Change-Id: Ia2f0a445f0170a7325f69259b5e7fb35a9f14921
2013-10-02 14:14:40 -07:00
Stephen Hines
762cea46f0 Use gnu++11 and gnu99 explicitly for C++/C files.
Clang and gcc default to different standards, so we should be explicit
about the versions we want to compile for.

Change-Id: I65495a2392dd29f36373b94c616c2506173e6033
2013-10-02 12:37:16 -07:00
Elliott Hughes
2e2a4f97bf am 4bbf3a8b: Merge "Remove #define _BITSIZE 32."
* commit '4bbf3a8b558ea8b5ce62f2d1ee2599a8e95c21c0':
  Remove #define _BITSIZE 32.
2013-10-02 10:08:58 -07:00
Elliott Hughes
4bbf3a8b55 Merge "Remove #define _BITSIZE 32." 2013-10-02 17:06:44 +00:00
Stephen Hines
62f95981df am 70e1730c: Merge "Remove _FORTIFY_SOURCE in implementation files."
* commit '70e1730c38ad91cf65425e29732b5c041dd0cf43':
  Remove _FORTIFY_SOURCE in implementation files.
2013-10-02 09:31:56 -07:00
Stephen Hines
dcffa9998e am e0e6409c: Merge "Add simple implementation _Unwind_GetIP() for clang compiles."
* commit 'e0e6409c12d21cf1f0390c435fd76e74b5c4580d':
  Add simple implementation _Unwind_GetIP() for clang compiles.
2013-10-02 09:31:55 -07:00