Commit Graph

7056 Commits

Author SHA1 Message Date
Elliott Hughes
5052dcd488 am 8d0fe1c4: Merge "Remove two DNS files that weren\'t being built."
* commit '8d0fe1c49e83592372becc996accfe9d5948aa9b':
  Remove two DNS files that weren't being built.
2014-02-20 22:19:07 +00:00
Elliott Hughes
45352a065c am cb43f847: Merge "Unify our assembler macros."
* commit 'cb43f8474dafd7a4d3eb605d4a7c7f69ad7cef2e':
  Unify our assembler macros.
2014-02-20 22:19:07 +00:00
Elliott Hughes
677b6e605b Move the upstream-netbsd libc files into the correct directory.
I screwed up when I originally imported these files; they're in lib/libc/
in the upstream tree; there is no top-level libc/ (though there is a top-level
common/, so those files stay where they are).

Change-Id: I7c5e2224a4441ab0e33616a855a8c6aacfeac46f
2014-02-20 14:16:58 -08:00
Elliott Hughes
8d0fe1c49e Merge "Remove two DNS files that weren't being built." 2014-02-20 22:14:35 +00:00
Elliott Hughes
cb43f8474d Merge "Unify our assembler macros." 2014-02-20 22:13:18 +00:00
Elliott Hughes
d28b277952 Remove two DNS files that weren't being built.
And switch the makefile to just building everything in the relevant directory.

Change-Id: Ia7785c4dcabb51639c2230026f8a8a9eff919a36
2014-02-20 13:59:20 -08:00
Elliott Hughes
851e68a240 Unify our assembler macros.
Our <machine/asm.h> files were modified from upstream, to the extent
that no architecture was actually using the upstream ENTRY or END macros,
assuming that architecture even had such a macro upstream. This patch moves
everyone to the same macros, with just a few tweaks remaining in the
<machine/asm.h> files, which no one should now use directly.

I've removed most of the unused cruft from the <machine/asm.h> files, though
there's still rather a lot in the mips/mips64 ones.

Bug: 12229603
Change-Id: I2fff287dc571ac1087abe9070362fb9420d85d6d
2014-02-20 13:51:26 -08:00
Elliott Hughes
97dcfc06e7 am 22c6b7ff: Merge "Fix mips64 crt build."
* commit '22c6b7ffd36fe8b34b677eea94d00aef2624e4e8':
  Fix mips64 crt build.
2014-02-20 20:04:46 +00:00
Elliott Hughes
22c6b7ffd3 Merge "Fix mips64 crt build." 2014-02-20 19:58:23 +00:00
Elliott Hughes
632e242207 am 6a686556: Merge "Remove useless _C_LABEL from our assembler source."
* commit '6a686556b9f112fdf02ce404d680306ab1d901be':
  Remove useless _C_LABEL from our assembler source.
2014-02-20 19:58:15 +00:00
Elliott Hughes
c345caae9a Fix mips64 crt build.
This was broken during the multi-arch makefile changes.

Change-Id: Id25cf3273f63c11fbca1cff944fc5e1bf765c636
2014-02-20 11:57:25 -08:00
Elliott Hughes
6a686556b9 Merge "Remove useless _C_LABEL from our assembler source." 2014-02-20 19:52:37 +00:00
Elliott Hughes
09289d92f9 Remove useless _C_LABEL from our assembler source.
Change-Id: I41a9181537c70ecc69ef8035132c9a83811a40d0
2014-02-20 11:51:11 -08:00
Elliott Hughes
f5fd87f4f9 am bfa2b6fc: Merge "Stop advertising an arm32-specific hack like it\'s a build system feature."
* commit 'bfa2b6fc6a09df9815773890db94d6a126565289':
  Stop advertising an arm32-specific hack like it's a build system feature.
2014-02-20 19:46:24 +00:00
Dmitriy Ivanov
ac8049349f am 54d49ac7: Merge "Added script generating additions to libgcc_compat.c from linker errors"
* commit '54d49ac75b4b71f38eb154ab8e05f60b7c347a2b':
  Added script generating additions to libgcc_compat.c from linker errors
2014-02-20 19:46:23 +00:00
Elliott Hughes
bfa2b6fc6a Merge "Stop advertising an arm32-specific hack like it's a build system feature." 2014-02-20 19:41:15 +00:00
Dmitriy Ivanov
54d49ac75b Merge "Added script generating additions to libgcc_compat.c from linker errors" 2014-02-20 19:40:08 +00:00
Elliott Hughes
6e39ba73bf Stop advertising an arm32-specific hack like it's a build system feature.
Change-Id: I3a830b4a3516b6eb8e4f8e6e6b122a22a2e341df
2014-02-20 11:36:55 -08:00
Elliott Hughes
8a498e4ab2 am ca566b31: Merge "Don\'t explicitly list the tzcode files."
* commit 'ca566b31036704eb6cdde05a0bd9ee972d7a995d':
  Don't explicitly list the tzcode files.
2014-02-20 19:35:21 +00:00
Dmitriy Ivanov
adab51aefd Added script generating additions to libgcc_compat.c from linker errors
bug: 12234455
Change-Id: Icac35237f06e75745da5a91d9c4c941d7df4f84d
2014-02-20 11:34:08 -08:00
Elliott Hughes
ca566b3103 Merge "Don't explicitly list the tzcode files." 2014-02-20 19:31:13 +00:00
Elliott Hughes
1fbe6213cd Don't explicitly list the tzcode files.
Change-Id: I3ac19899523ac1f5fd2fdd6c942aefce75a964a4
2014-02-20 11:28:20 -08:00
Narayan Kamath
8b6579d02b am d9459525: Merge "Fix signbit / infinite / isinf / isnan unit tests."
* commit 'd9459525b4133e825bf95d03b06e695433c124bd':
  Fix signbit / infinite / isinf / isnan unit tests.
2014-02-20 10:08:22 +00:00
Narayan Kamath
d9459525b4 Merge "Fix signbit / infinite / isinf / isnan unit tests." 2014-02-20 10:03:56 +00:00
Elliott Hughes
f0e9d652fa am 75f04d10: Merge "Remove the useless _C_LABEL from generated system calls."
* commit '75f04d107695f17bc800024d03e03b602dc02ee1':
  Remove the useless _C_LABEL from generated system calls.
2014-02-20 03:06:31 +00:00
Elliott Hughes
75f04d1076 Merge "Remove the useless _C_LABEL from generated system calls." 2014-02-20 03:00:16 +00:00
Elliott Hughes
d465eb4e76 Remove the useless _C_LABEL from generated system calls.
Change-Id: Id1d2fd39972652831ea825f6f9cf940b08f42b5c
2014-02-19 18:59:19 -08:00
Elliott Hughes
42049f4b9c am fbaddda9: Merge "Linker writes to wrong memory location when processing DT_MIPS_RLD_MAP"
* commit 'fbaddda9f04fa504deb752bba819eb1fa5439baa':
  Linker writes to wrong memory location when processing DT_MIPS_RLD_MAP
2014-02-19 23:45:49 +00:00
Elliott Hughes
bde420bb86 am b69c0b53: Merge "Make mips/mips64 syscall stubs more like the other architectures."
* commit 'b69c0b532e4f6d32e7c43a7be02a27e0b02e75c3':
  Make mips/mips64 syscall stubs more like the other architectures.
2014-02-19 23:42:17 +00:00
Elliott Hughes
fbaddda9f0 Merge "Linker writes to wrong memory location when processing DT_MIPS_RLD_MAP" 2014-02-19 23:40:46 +00:00
Elliott Hughes
b69c0b532e Merge "Make mips/mips64 syscall stubs more like the other architectures." 2014-02-19 23:35:31 +00:00
Elliott Hughes
79183d7ff4 am 6db95a86: Merge "Top-level documentation about working on bionic."
* commit '6db95a869e5c57713632106878d854c7c0aff7a1':
  Top-level documentation about working on bionic.
2014-02-19 23:03:39 +00:00
Elliott Hughes
6db95a869e Merge "Top-level documentation about working on bionic." 2014-02-19 22:58:04 +00:00
Elliott Hughes
9abbbdc534 Make mips/mips64 syscall stubs more like the other architectures.
Change-Id: I55f8c1a95f643a6e484f12fbcc25e2c77e55b6b8
2014-02-19 14:54:31 -08:00
Elliott Hughes
ace8dfab1f am e6c451f5: Merge "Make mips generated assembler more like the mips64 stuff."
* commit 'e6c451f5f2e17fccccedaa1c2a90d8d9ba0c1917':
  Make mips generated assembler more like the mips64 stuff.
2014-02-19 20:34:25 +00:00
Elliott Hughes
e6c451f5f2 Merge "Make mips generated assembler more like the mips64 stuff." 2014-02-19 20:28:34 +00:00
Elliott Hughes
eae27dc55a Make mips generated assembler more like the mips64 stuff.
I broke the mips build yesterday because it doesn't use
<private/bionic_asm.h> like the other architectures, including mips64.
I want to move mips closer to mips64 to try to avoid this kind of thing
in future.

Change-Id: Idb985587ff355b9e5e765c1f5671dc0144cd2488
2014-02-19 12:20:00 -08:00
Narayan Kamath
5f6f4a956c Fix signbit / infinite / isinf / isnan unit tests.
Turns out stlport isn't broken. <cmath> (included
transitively via gtest in our case) is not required
to make C99 math macros (like signbit) available, nor is
it required to preserve them if they're already defined.
It is only required to make the equivalent functions in
namespace std available.

I couldn't find any documentation of required behaviour for
programs that include both <math.h> and <cmath>.

I've verified experimentally that llvm's libc++ and gnu
stl behave the same as stlport.

bug: 12935307

Change-Id: I9dc5cc0fd9f4f259abc8eefb280177cdd092a94b
2014-02-19 18:50:30 +00:00
Elliott Hughes
560cee6bff Top-level documentation about working on bionic.
Change-Id: If0a531865fa9c0d57486b98d4b78e3efcbf4e1d1
2014-02-18 22:08:56 -08:00
Elliott Hughes
112e3a9a8c am 44ef37c1: Merge "Use uid_t and gid_t for st_uid and st_gid in struct stat."
* commit '44ef37c1b445e864068cdcd885ab3d7b17079ad3':
  Use uid_t and gid_t for st_uid and st_gid in struct stat.
2014-02-19 00:56:51 +00:00
Elliott Hughes
f7e642b9ff am 24ef4779: Merge "Fix build by avoiding the _C_LABEL macro."
* commit '24ef4779eb47f23b8d4f4e678d677bd45a91373f':
  Fix build by avoiding the _C_LABEL macro.
2014-02-19 00:52:24 +00:00
Elliott Hughes
44ef37c1b4 Merge "Use uid_t and gid_t for st_uid and st_gid in struct stat." 2014-02-19 00:51:31 +00:00
Elliott Hughes
24ef4779eb Merge "Fix build by avoiding the _C_LABEL macro." 2014-02-19 00:46:32 +00:00
Elliott Hughes
6b5559315d Use uid_t and gid_t for st_uid and st_gid in struct stat.
Change-Id: Ide62dc714d76d881e3aa79e7a59ee6533a23dd00
2014-02-18 16:43:31 -08:00
Elliott Hughes
986f906710 Fix build by avoiding the _C_LABEL macro.
Change-Id: Ide367c2b65071388bd95fbc81a4ed6ae94aec4e4
2014-02-18 16:42:36 -08:00
Elliott Hughes
f25d0c1d4d am 787c1f93: Merge "Add missing file from previous change."
* commit '787c1f937a915feefb767d0c6a15ddb70e6de933':
  Add missing file from previous change.
2014-02-18 23:55:16 +00:00
Benjamin Adolphi
006f9ad891 Linker writes to wrong memory location when processing DT_MIPS_RLD_MAP
When bionic's dynamic linker processes the .dynamic section of a MIPS ELF binary and encounters the DT_MIPS_RLD_MAP dynamic array tag, it calculates the address of where to write a pointer to the _r_debug structure. The current implementation simply reads the value given in the d_ptr field and writes the pointer address to that location. However, this value has to be adjusted to reflect the real load address of the binary. Otherwise the linker will write to a faulty location possibly resulting in a crash when linking a MIPS binary that includes DT_MIPS_RLD_MAP. This change corrects that problem.

Change-Id: I1a91874f7ab47289001fe72d9016660c14c70362
Signed-off-by: Benjamin Adolphi <b.adolphi@gmail.com>
2014-02-19 00:50:32 +01:00
Elliott Hughes
787c1f937a Merge "Add missing file from previous change." 2014-02-18 23:49:16 +00:00
Elliott Hughes
1d18e9cc0a Add missing file from previous change.
Change-Id: Id25000162a9ed76ce756842bdc09fe9afff9528f
2014-02-18 15:48:56 -08:00
Elliott Hughes
a676a54e5d am b3602078: Merge "Implement some of the missing LFS64 support."
* commit 'b36020789ac860fcfbbeaf56d560926d8ee228f6':
  Implement some of the missing LFS64 support.
2014-02-18 23:47:56 +00:00