Commit Graph

6681 Commits

Author SHA1 Message Date
Elliott Hughes
d971f72905 Merge "Make it possible for code to query the dynamic linker's default search path." 2014-01-14 20:03:20 +00:00
Elliott Hughes
d2124b7c5c am 7e997388: am b5e21103: Merge "AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()"
* commit '7e997388ba63f0b0b4c95542cfc5fbe6e3c93b4d':
  AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()
2014-01-14 01:12:56 +00:00
Elliott Hughes
7e997388ba am b5e21103: Merge "AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()"
* commit 'b5e211031b69963a5f72ff369c66dc325a03e740':
  AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()
2014-01-13 17:06:31 -08: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
a4aafd1560 Make it possible for code to query the dynamic linker's default search path.
We're not going to have init(1) set LD_LIBRARY_PATH globally on 64-bit.
This patch makes it possible for libnativehelper to set LD_LIBRARY_PATH
in each Java VM (to support System.loadLibrary) without also hard-coding
the default search path there.

Change-Id: If13961fae976e06dd80d5ef522f31e8b7eb01154
2014-01-13 16:37:47 -08:00
Elliott Hughes
3c5323a731 am 490f1755: am ebc1c76d: Merge "Add -Bsymbolic to the ld flags when linking the dynamic linker."
* commit '490f1755d14536915f748a6513399a92f6e0b67f':
  Add -Bsymbolic to the ld flags when linking the dynamic linker.
2014-01-13 21:48:15 +00:00
Elliott Hughes
490f1755d1 am ebc1c76d: Merge "Add -Bsymbolic to the ld flags when linking the dynamic linker."
* commit 'ebc1c76d77dd604f16126e66b2171e8ee6fa1d22':
  Add -Bsymbolic to the ld flags when linking the dynamic linker.
2014-01-13 13:42:55 -08:00
Elliott Hughes
ebc1c76d77 Merge "Add -Bsymbolic to the ld flags when linking the dynamic linker." 2014-01-13 21:38:16 +00:00
Elliott Hughes
7ff07ad321 Add -Bsymbolic to the ld flags when linking the dynamic linker.
We don't need this on architectures other than aarch64, and
we're still investigating why we need it on aarch64, but it
doesn't seem unreasonable to have this flag set when linking
the dynamic linker anyway; it's clearly the intended behavior.

Change-Id: I4fa1b4ae543a818979934bf818eabac03bb9154f
2014-01-13 13:33:01 -08:00
Elliott Hughes
0b9a13f58f am a1595487: am ae189740: Merge "Add some more headers."
* commit 'a1595487faadaf48201ff8f91fdf59c8ae0e7b19':
  Add some more headers.
2014-01-10 23:51:16 +00:00
Elliott Hughes
a1595487fa am ae189740: Merge "Add some more headers."
* commit 'ae189740de6b03f06a06214122183a3774f5cb62':
  Add some more headers.
2014-01-10 15:42:44 -08: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
51e1ca7677 am 09a73562: am f784f036: Merge "Add extra libc stubs for mntent related functions."
* commit '09a735628269336d29f722ebcdeb3da9534f6020':
  Add extra libc stubs for mntent related functions.
2014-01-10 02:06:03 +00:00
JP Abgrall
09a7356282 am f784f036: Merge "Add extra libc stubs for mntent related functions."
* commit 'f784f0365d0c491cba7e6081a072b28ad357fef6':
  Add extra libc stubs for mntent related functions.
2014-01-09 18:01:06 -08:00
JP Abgrall
f784f0365d Merge "Add extra libc stubs for mntent related functions." 2014-01-10 01:54:31 +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
e48e9c9919 am 2872e742: am 33c3e8d3: Merge "Add NT_PRSTATUS to <elf.h>."
* commit '2872e74298ab535b36e03630207d3d685e29d570':
  Add NT_PRSTATUS to <elf.h>.
2014-01-10 00:02:23 +00:00
Elliott Hughes
2872e74298 am 33c3e8d3: Merge "Add NT_PRSTATUS to <elf.h>."
* commit '33c3e8d3b2312be3a3eb9d2632c4a570969e1624':
  Add NT_PRSTATUS to <elf.h>.
2014-01-09 15:58:59 -08:00
Elliott Hughes
33c3e8d3b2 Merge "Add NT_PRSTATUS to <elf.h>." 2014-01-09 23:53:58 +00:00
Elliott Hughes
1272dbd1d7 Add NT_PRSTATUS to <elf.h>.
Needed by aarch64.

Bug: 12476126
Change-Id: I7764664459a06cf4f2a60e707bd968d321a78430
2014-01-09 15:45:07 -08:00
Elliott Hughes
1424b70152 am fce55ed3: am 8e6bf35a: Merge "Add <sgidefs.h>."
* commit 'fce55ed319648f7b80303815ba25f5a5f48be2db':
  Add <sgidefs.h>.
2014-01-09 22:37:27 +00:00
Elliott Hughes
fb12b9a7a3 am ea7c0ea6: am d29c75f0: Merge "Fix x86 user_regs_struct."
* commit 'ea7c0ea61462691f9466489176c00393641821bc':
  Fix x86 user_regs_struct.
2014-01-09 22:33:46 +00:00
Elliott Hughes
fce55ed319 am 8e6bf35a: Merge "Add <sgidefs.h>."
* commit '8e6bf35a16532f9e90ce85b0674a0ff19dbef557':
  Add <sgidefs.h>.
2014-01-09 14:31:31 -08:00
Elliott Hughes
ea7c0ea614 am d29c75f0: Merge "Fix x86 user_regs_struct."
* commit 'd29c75f0907f1ea57b37ddbec0a41d8739ece6d8':
  Fix x86 user_regs_struct.
2014-01-09 14:28:08 -08:00
Elliott Hughes
8e6bf35a16 Merge "Add <sgidefs.h>." 2014-01-09 22:24:34 +00:00
Elliott Hughes
d29c75f090 Merge "Fix x86 user_regs_struct." 2014-01-09 22:23:35 +00:00
Elliott Hughes
f8b2b3c81e Fix x86 user_regs_struct.
I fixed x86-64 yesterday, but didn't fix x86 at the same time.

Change-Id: I5c081f5956dfedb9389af303369b841dd0fc1953
2014-01-09 14:01:18 -08:00
Elliott Hughes
1c2cf23a0c Add <sgidefs.h>.
Change-Id: I543d502a81dcb8d5969f814b8a9a9c819bc4fa2c
2014-01-09 13:54:49 -08:00
Elliott Hughes
2a25c30e33 am c63fe9fa: am 6114ffb3: Merge "Add the glibc-compatible d_fileno."
* commit 'c63fe9fa49ee8b7ad17021c1bd418525f9ee0fd0':
  Add the glibc-compatible d_fileno.
2014-01-09 21:49:06 +00:00
Elliott Hughes
c63fe9fa49 am 6114ffb3: Merge "Add the glibc-compatible d_fileno."
* commit '6114ffb3e16c114c728c31b472263660e2d2210c':
  Add the glibc-compatible d_fileno.
2014-01-09 13:43:48 -08:00
Elliott Hughes
6114ffb3e1 Merge "Add the glibc-compatible d_fileno." 2014-01-09 21:39:22 +00:00
Elliott Hughes
a8a3178445 Add the glibc-compatible d_fileno.
d_ino is the POSIX name, but glibc also offers d_fileno, and
that's what strace is using.

Change-Id: I3fadbe7a64700b42e78c7f4631620e864d43147b
2014-01-09 12:37:12 -08:00
Elliott Hughes
b1955cc447 am 56d790fc: am c65cbf97: Merge "Fix <sys/resource.h>."
* commit '56d790fceed92d7d970da8a1bb598bf7c78db7ee':
  Fix <sys/resource.h>.
2014-01-09 19:11:47 +00:00
Elliott Hughes
56d790fcee am c65cbf97: Merge "Fix <sys/resource.h>."
* commit 'c65cbf97d9769025ad83d6e7f4e7daa58a273a4c':
  Fix <sys/resource.h>.
2014-01-09 11:05:35 -08:00
Elliott Hughes
c65cbf97d9 Merge "Fix <sys/resource.h>." 2014-01-09 19:01:15 +00:00
Elliott Hughes
0f461e35f6 Fix <sys/resource.h>.
The situation here is a bit confusing. On 64-bit, rlimit and rlimit64 are
the same, and so getrlimit/getrlimit64, setrlimit/setrlimit64,
and prlimit/prlimit64 are all the same. On 32-bit, rlimit and rlimit64 are
different. 32-bit architectures other than MIPS go one step further by having
an even more limited getrlimit system call, so arm and x86 need to use
ugetrlimit instead of getrlimit. Worse, the 32-bit architectures don't have
64-bit getrlimit- and setrlimit-equivalent system calls, and you have to use
prlimit64 instead. There's no 32-bit prlimit system call, so there's no
easy implementation of that --- what should we do if the result of prlimit64
won't fit in a struct rlimit? Since 32-bit survived without prlimit/prlimit64
for this long, I'm not going to bother implementing prlimit for 32-bit.

We need the rlimit64 functions to be able to build strace 4.8 out of the box.

Change-Id: I1903d913b23016a2fc3b9f452885ac730d71e001
2014-01-09 11:00:04 -08:00
Elliott Hughes
e5af443047 am 8c6c9801: am 8276d287: Merge "Our dirent is a dirent64."
* commit '8c6c9801f175acbd7ebde6e2f855e0b47ae0f96e':
  Our dirent is a dirent64.
2014-01-09 01:26:31 +00:00
Elliott Hughes
49fd7864cd am 2ab8dd30: am 66f473ef: Merge "Add <sys/reg.h>."
* commit '2ab8dd30ef455973c94a7386c70f0d4627789bab':
  Add <sys/reg.h>.
2014-01-09 01:26:30 +00:00
Elliott Hughes
8c6c9801f1 am 8276d287: Merge "Our dirent is a dirent64."
* commit '8276d2875f64587e266567f5bb2c5e0c70ef0a5d':
  Our dirent is a dirent64.
2014-01-08 17:20:16 -08:00
Elliott Hughes
2ab8dd30ef am 66f473ef: Merge "Add <sys/reg.h>."
* commit '66f473ef3313a2af7b9639f134e107a804d1e164':
  Add <sys/reg.h>.
2014-01-08 17:20:15 -08:00
Elliott Hughes
8276d2875f Merge "Our dirent is a dirent64." 2014-01-09 01:15:27 +00:00
Elliott Hughes
66f473ef33 Merge "Add <sys/reg.h>." 2014-01-09 01:15:10 +00:00
Elliott Hughes
d0a17beb73 am 548eddab: am 8a6eec38: Merge "Fix x86_64 register names in <sys/user.h>."
* commit '548eddab41c1665f1baf20be7d9d5267e9243087':
  Fix x86_64 register names in <sys/user.h>.
2014-01-09 00:35:30 +00:00
Elliott Hughes
36a3f941d0 am 60ff1387: am 5d5cc227: Merge "We shouldn\'t have a <sys/dirent.h> that\'s a subset of <dirent.h>."
* commit '60ff1387f418faa24f0eb6f00e72ad1674b3bcaa':
  We shouldn't have a <sys/dirent.h> that's a subset of <dirent.h>.
2014-01-09 00:35:30 +00:00
Elliott Hughes
38f0ef3ff7 Our dirent is a dirent64.
Change-Id: Idc9ebfd900fddd4f7c7ac95bc9b74401ebc801a3
2014-01-08 16:31:36 -08:00
Elliott Hughes
548eddab41 am 8a6eec38: Merge "Fix x86_64 register names in <sys/user.h>."
* commit '8a6eec38eb19b5af317b57c15459f9786df83eba':
  Fix x86_64 register names in <sys/user.h>.
2014-01-08 16:30:17 -08:00
Elliott Hughes
60ff1387f4 am 5d5cc227: Merge "We shouldn\'t have a <sys/dirent.h> that\'s a subset of <dirent.h>."
* commit '5d5cc2273f7be6b3d9fe4e5787ab22bc137c811a':
  We shouldn't have a <sys/dirent.h> that's a subset of <dirent.h>.
2014-01-08 16:30:17 -08:00
Elliott Hughes
5b17e4da39 Add <sys/reg.h>.
This describes the offsets into ptrace's returned arrays of registers
for x86 and x86-64.

Change-Id: I044f03e286673999a298b73a813d4ad366625845
2014-01-08 16:29:22 -08:00
Elliott Hughes
8a6eec38eb Merge "Fix x86_64 register names in <sys/user.h>." 2014-01-09 00:24:55 +00:00