Commit Graph

7213 Commits

Author SHA1 Message Date
Elliott Hughes
08cf84db4e am f0e9d652: am 75f04d10: Merge "Remove the useless _C_LABEL from generated system calls."
* commit 'f0e9d652fa30c381295589f839a8f5f248a949f0':
  Remove the useless _C_LABEL from generated system calls.
2014-02-20 21:27:52 +00:00
Elliott Hughes
7809d7f4cb am 42049f4b: am fbaddda9: Merge "Linker writes to wrong memory location when processing DT_MIPS_RLD_MAP"
* commit '42049f4b9cf881e739ace101f1e06aed6c1f4f51':
  Linker writes to wrong memory location when processing DT_MIPS_RLD_MAP
2014-02-20 14:01:20 +00:00
Elliott Hughes
2bed56599f am bde420bb: am b69c0b53: Merge "Make mips/mips64 syscall stubs more like the other architectures."
* commit 'bde420bb86bbb0f4223a117cd3aaca00e7906501':
  Make mips/mips64 syscall stubs more like the other architectures.
2014-02-20 14:01:19 +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
6a734b6df5 am 79183d7f: am 6db95a86: Merge "Top-level documentation about working on bionic."
* commit '79183d7ff46d5f2f1d465890da57aa4c510bb131':
  Top-level documentation about working on bionic.
2014-02-20 00:33:56 +00: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
dae87c0c74 am ace8dfab: am e6c451f5: Merge "Make mips generated assembler more like the mips64 stuff."
* commit 'ace8dfab1fe07890440e8acf4a1e2c0cf0d0489d':
  Make mips generated assembler more like the mips64 stuff.
2014-02-19 20:42:33 +00: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
Elliott Hughes
560cee6bff Top-level documentation about working on bionic.
Change-Id: If0a531865fa9c0d57486b98d4b78e3efcbf4e1d1
2014-02-18 22:08:56 -08:00
Elliott Hughes
b3183def04 am 112e3a9a: am 44ef37c1: Merge "Use uid_t and gid_t for st_uid and st_gid in struct stat."
* commit '112e3a9a8c4c89b1cce366bc0c7a7f15fae862c2':
  Use uid_t and gid_t for st_uid and st_gid in struct stat.
2014-02-19 01:02:24 +00:00
Elliott Hughes
8a6ad03d0c am f7e642b9: am 24ef4779: Merge "Fix build by avoiding the _C_LABEL macro."
* commit 'f7e642b9ff2c0c70d9a800d0873880a58a33e424':
  Fix build by avoiding the _C_LABEL macro.
2014-02-19 00:58:59 +00: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
5dfe323310 am f25d0c1d: am 787c1f93: Merge "Add missing file from previous change."
* commit 'f25d0c1d4dc0f757dc7bf342b1964e875c439933':
  Add missing file from previous change.
2014-02-19 00:02:11 +00: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
Elliott Hughes
781236e321 am a676a54e: am b3602078: Merge "Implement some of the missing LFS64 support."
* commit 'a676a54e5dbb1ddda0c0045d990a920558671233':
  Implement some of the missing LFS64 support.
2014-02-18 23:54:43 +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
Elliott Hughes
b36020789a Merge "Implement some of the missing LFS64 support." 2014-02-18 23:40:56 +00:00
Elliott Hughes
db1ea34748 Implement some of the missing LFS64 support.
This gives us:

* <dirent.h>
  struct dirent64
  readdir64, readdir64_r, alphasort64, scandir64

* <fcntl.h>
  creat64, openat64, open64.

* <sys/stat.h>
  struct stat64
  fstat64, fstatat64, lstat64, stat64.

* <sys/statvfs.h>
  struct statvfs64
  statvfs64, fstatvfs64.

* <sys/vfs.h>
  struct statfs64
  statfs64, fstatfs64.

This also removes some of the incorrect #define hacks we've had in the
past (for stat64, for example, which we promised to clean up way back
in bug 8472078).

Bug: 11865851
Bug: 8472078
Change-Id: Ia46443521918519f2dfa64d4621027dfd13ac566
2014-02-18 15:39:24 -08:00
Elliott Hughes
f998473357 am df3d56db: am 3623d806: Merge "Fix x86 build."
* commit 'df3d56db663a19d0de8f743102d13e62343c874c':
  Fix x86 build.
2014-02-18 20:47:29 +00:00
Elliott Hughes
a1ac8a60da am d49247be: am ffe02668: Merge "bionic: fix __set_errno for arm64 syscalls that return a 64-bit value"
* commit 'd49247be279b337fdd72c15421dcaf318489d284':
  bionic: fix __set_errno for arm64 syscalls that return a 64-bit value
2014-02-18 20:42:57 +00:00
Elliott Hughes
df3d56db66 am 3623d806: Merge "Fix x86 build."
* commit '3623d80675e5321b92c2d88a7b7ec6bd998d81d5':
  Fix x86 build.
2014-02-18 20:40:54 +00:00
Elliott Hughes
d49247be27 am ffe02668: Merge "bionic: fix __set_errno for arm64 syscalls that return a 64-bit value"
* commit 'ffe026680edaba268330bc67dd986d2c900ecfc7':
  bionic: fix __set_errno for arm64 syscalls that return a 64-bit value
2014-02-18 20:36:25 +00:00
Elliott Hughes
3623d80675 Merge "Fix x86 build." 2014-02-18 20:35:15 +00:00
Elliott Hughes
915fefb62e Fix x86 build.
Change-Id: Iee6e5884288f7da6c955694cfe32fecfd9c9e263
2014-02-18 12:34:51 -08:00
Elliott Hughes
ffe026680e Merge "bionic: fix __set_errno for arm64 syscalls that return a 64-bit value" 2014-02-18 20:31:01 +00:00
Elliott Hughes
662655428d am 29eed9cc: am 7f15e28d: Merge "Clean up warnings in libstdc++."
* commit '29eed9cc3aaee9236ec3c6397b41d5421e9b0c91':
  Clean up warnings in libstdc++.
2014-02-18 20:18:18 +00:00
Elliott Hughes
b8662c63b4 am d4c049e0: am cd6748cd: Merge "Clean up various warnings in bionic."
* commit 'd4c049e0234b0447b4da4369f2e2e509fe3ac549':
  Clean up various warnings in bionic.
2014-02-18 20:18:17 +00:00
Colin Cross
3d19a8319b bionic: fix __set_errno for arm64 syscalls that return a 64-bit value
bionic/libc/arch-arm64/syscalls/read.S ends with:
    b.hi __set_errno
    ret
END(read)

If __set_errno returns int, it will set w0 to 0xFFFFFFFF, which means
x0 is 0x00000000FFFFFFFF.  When interpreted as a ssize_t that is
INT_MAX, not -1.

Change __set_errno to return long, which will cause x0 to be set instead
of w0.

Change-Id: I9f9ea0f2995928d2ea240eb2ff7758ecdf0ff412
2014-02-18 12:11:38 -08:00
Elliott Hughes
29eed9cc3a am 7f15e28d: Merge "Clean up warnings in libstdc++."
* commit '7f15e28dd4184015a2c990b6e45c33c35b251935':
  Clean up warnings in libstdc++.
2014-02-18 20:11:36 +00:00
Elliott Hughes
d4c049e023 am cd6748cd: Merge "Clean up various warnings in bionic."
* commit 'cd6748cdd7bcab702fe0bf6de943eb832f4fb762':
  Clean up various warnings in bionic.
2014-02-18 20:11:35 +00:00
Elliott Hughes
7f15e28dd4 Merge "Clean up warnings in libstdc++." 2014-02-18 20:05:59 +00:00
Elliott Hughes
cd6748cdd7 Merge "Clean up various warnings in bionic." 2014-02-18 20:05:17 +00:00