Dimitry Ivanov
f53e7de4e9
linker: check if needed_by is nullptr
...
Check if needed_by is nullptr in the grey-list warning
also print the name of the library making call to dlopen()
Bug: http://b/26749878
Change-Id: I4e16223a3e3d8d1539f855a0b3f199c5529027e0
2016-02-01 12:32:22 -08:00
Shinichiro Hamaji
1516f02229
Merge "Tell kati about generated dependencies around crt" am: 37591462fa
...
am: c91cd8a47f
* commit 'c91cd8a47f14a96e37d9a5054720886bdacf0bd5':
Tell kati about generated dependencies around crt
2016-01-29 06:45:37 +00:00
Shinichiro Hamaji
c91cd8a47f
Merge "Tell kati about generated dependencies around crt"
...
am: 37591462fa
* commit '37591462fa76791c2372d789c3532c7cd0ca7a84':
Tell kati about generated dependencies around crt
2016-01-29 06:42:46 +00:00
Shinichiro Hamaji
37591462fa
Merge "Tell kati about generated dependencies around crt"
2016-01-29 06:37:46 +00:00
Dimitry Ivanov
76a50aab9f
Merge "Do not allow System.load() of external libraries"
2016-01-29 03:16:29 +00:00
Christopher Ferris
20660aff45
Merge "Add min/max values for config values." am: 50647711eb
...
am: bfc044628a
* commit 'bfc044628accf3af2ba696f44b2452ce5c8a17dc':
Add min/max values for config values.
2016-01-29 02:37:22 +00:00
Christopher Ferris
bfc044628a
Merge "Add min/max values for config values."
...
am: 50647711eb
* commit '50647711ebaf2360aca05cc94a2fdf431c1a153e':
Add min/max values for config values.
2016-01-29 02:35:26 +00:00
Christopher Ferris
50647711eb
Merge "Add min/max values for config values."
2016-01-29 02:31:07 +00:00
Dimitry Ivanov
1005748da1
Do not allow System.load() of external libraries
...
The greylisting mechanism had a bug that allowed
loading any library using absolute path from java code.
It mistakenly assumed they are needed by greylisted
system library when in fact it is dlopen() call from
libnativeloader.
This patch fixes this problem by checking that the library is in
fact dt_needed and it is not a dlopen call.
Bug: http://b/26394120
Bug: http://b/22548808
Change-Id: Ia3d4c19e77b04d09a6c3047d684d0c04bd5c785e
2016-01-28 17:49:49 -08:00
Shinichiro Hamaji
3bcf094f21
Tell kati about generated dependencies around crt
...
This was a regression since kati has been introduced. Without
this, touching libc/arch-common/bionic/__dso_handle.h doesn't
let ninja rebuild object files.
Bug: 26839129
Change-Id: Ie9ef4559c0d1ff0910a4d250ea36938b291d15db
2016-01-28 19:39:50 +09:00
Dimitry Ivanov
9a020b1ff0
Merge "linker: mark library .bss pages with anon:.bss" am: 0e915b294b
...
am: 2c1589f568
* commit '2c1589f568ae56c85a8ae4d3d92e248d659eeee4':
linker: mark library .bss pages with anon:.bss
2016-01-28 04:22:29 +00:00
Dimitry Ivanov
2c1589f568
Merge "linker: mark library .bss pages with anon:.bss"
...
am: 0e915b294b
* commit '0e915b294b2b1f0d20cd1b9a4e1721d59ccbfa7a':
linker: mark library .bss pages with anon:.bss
2016-01-28 03:54:26 +00:00
Dimitry Ivanov
0e915b294b
Merge "linker: mark library .bss pages with anon:.bss"
2016-01-28 03:50:24 +00:00
Christopher Ferris
166c8535a5
Add min/max values for config values.
...
This is to only allow realistic values for some of the options.
Bug: 26739265
Change-Id: I172d5401c27e5d638d80f1c93c678c26c4dae0fc
2016-01-27 18:13:09 -08:00
Dimitry Ivanov
1b84afcfb1
linker: mark library .bss pages with anon:.bss
...
Bug: http://b/26778774
Change-Id: Ie2cdd841b7238de50ef389a897d79f915229616b
2016-01-27 18:12:03 -08:00
Dimitry Ivanov
701e3663bb
Merge changes I7dc213e9,I2928d682 am: fd799baf81
...
am: c22e0ea41d
* commit 'c22e0ea41d5e70130ecc0eb52ceb64c00cb3d3c2':
Hide '__moddi3' symbol for x86 and mips
Hide '__isthreaded' for lp64 libc.so
2016-01-27 23:41:37 +00:00
Dimitry Ivanov
c22e0ea41d
Merge changes I7dc213e9,I2928d682
...
am: fd799baf81
* commit 'fd799baf81e7642f2d91968ba01c39f097c0f357':
Hide '__moddi3' symbol for x86 and mips
Hide '__isthreaded' for lp64 libc.so
2016-01-27 23:39:36 +00:00
Dimitry Ivanov
fd799baf81
Merge changes I7dc213e9,I2928d682
...
* changes:
Hide '__moddi3' symbol for x86 and mips
Hide '__isthreaded' for lp64 libc.so
2016-01-27 23:36:18 +00:00
Dimitry Ivanov
ffaa2169d7
Hide '__moddi3' symbol for x86 and mips
...
Bug: http://b/26805673
Change-Id: I7dc213e9f25510a2a74a30e8c43fd7a64cb3dbdb
2016-01-27 15:12:19 -08:00
Dimitry Ivanov
aa2fd0fece
Hide '__isthreaded' for lp64 libc.so
...
Bug: http://b/26805673
Change-Id: I2928d68287894be9f9ae7ed1858af512d8c80a3b
2016-01-27 14:54:36 -08:00
Christopher Ferris
4b42cd8cd9
Merge "Remove unused file." am: e4daf100b3
...
am: f788d6d8c9
* commit 'f788d6d8c9f445bca3140998bd394c58b35340b7':
Remove unused file.
2016-01-27 20:31:05 +00:00
Christopher Ferris
f788d6d8c9
Merge "Remove unused file."
...
am: e4daf100b3
* commit 'e4daf100b33fb17936b4d61e0ddfe679fcd04123':
Remove unused file.
2016-01-27 20:29:18 +00:00
Christopher Ferris
e4daf100b3
Merge "Remove unused file."
2016-01-27 20:25:55 +00:00
Christopher Ferris
2fc7f9db3d
Remove unused file.
...
This file should have been deleted with the malloc debug rewrite, but
popped back into existence due to a merge conflict.
Change-Id: I74e53daaf3febf650b20e3da5329558ac84c5bcd
2016-01-27 10:58:36 -08:00
Elliott Hughes
16f81e76c8
Merge "Fix a sign extension bug in stdio." am: 172420e6a2
...
am: 0fb1e6bdac
* commit '0fb1e6bdac04c9cb113232ca95d57f8e96361df0':
Fix a sign extension bug in stdio.
2016-01-27 02:43:54 +00:00
Elliott Hughes
0fb1e6bdac
Merge "Fix a sign extension bug in stdio."
...
am: 172420e6a2
* commit '172420e6a2c5af527984a3a3a51f60a48b06ae9a':
Fix a sign extension bug in stdio.
2016-01-27 02:42:09 +00:00
Elliott Hughes
172420e6a2
Merge "Fix a sign extension bug in stdio."
2016-01-27 02:38:46 +00:00
Dimitry Ivanov
116b57f0ec
Merge "Unify names for pages allocated for small objects" am: eecae0a359
...
am: cdf8d292f3
* commit 'cdf8d292f3cc12516f808f1a341df1a9194adcbd':
Unify names for pages allocated for small objects
2016-01-27 02:33:44 +00:00
Dimitry Ivanov
cdf8d292f3
Merge "Unify names for pages allocated for small objects"
...
am: eecae0a359
* commit 'eecae0a3598b9f9946b452107c54678da77c7226':
Unify names for pages allocated for small objects
2016-01-27 02:31:58 +00:00
Dimitry Ivanov
eecae0a359
Merge "Unify names for pages allocated for small objects"
2016-01-27 02:28:41 +00:00
Elliott Hughes
955426ef79
Fix a sign extension bug in stdio.
...
This also lets us test the EOVERFLOW behavior, which pointed out that the
fgetpos/fsetpos return on failure has always been wrong...
Bug: http://b/24807045
Change-Id: I35273eb07c8c9155af858adb27569983397580b6
2016-01-26 18:25:52 -08:00
Dimitry Ivanov
d9d6a84c01
Unify names for pages allocated for small objects
...
Bug: http://b/26776399
Change-Id: Id5b6f143a526cecca56de18ddad8857dfa1dd165
2016-01-26 17:54:13 -08:00
Tom Cherry
62a854daf5
Merge "Replace snprintf() with __libc_format_buffer()" am: 194860a9e6
...
am: 7a62c10096
* commit '7a62c10096735f8cd0257dc5069a7af69a7f279e':
Replace snprintf() with __libc_format_buffer()
2016-01-27 00:17:35 +00:00
Tom Cherry
7a62c10096
Merge "Replace snprintf() with __libc_format_buffer()"
...
am: 194860a9e6
* commit '194860a9e638b1d093857f08b8fad37c9ec0e113':
Replace snprintf() with __libc_format_buffer()
2016-01-27 00:14:59 +00:00
Tom Cherry
194860a9e6
Merge "Replace snprintf() with __libc_format_buffer()"
2016-01-27 00:09:52 +00:00
Tom Cherry
8352475c75
Replace snprintf() with __libc_format_buffer()
...
If snprintf() is called from the linker, it may erroneously return a
null string. The libc internal __libc_format_buffer() does not have
this problem, so it is now used instead.
Bug: 26756577
Change-Id: I37a97e27f59b3c0a087f54a6603cc3aff7f07522
2016-01-26 23:51:01 +00:00
Elliott Hughes
994f43ff6f
Merge "Implement funopen64." am: 896224aa7f
...
am: 61af93ae54
* commit '61af93ae5471b1bf723d51b1a5ab62cc7c7376db':
Implement funopen64.
2016-01-26 23:37:21 +00:00
Elliott Hughes
61af93ae54
Merge "Implement funopen64."
...
am: 896224aa7f
* commit '896224aa7f307b6c53d8c4dfa0b0e3556b3b9fda':
Implement funopen64.
2016-01-26 23:34:52 +00:00
Elliott Hughes
896224aa7f
Merge "Implement funopen64."
2016-01-26 23:26:43 +00:00
Elliott Hughes
35a96b2af4
Merge "Fix lockf for LP32." am: a449fafc89
...
am: 44c4b858ec
* commit '44c4b858ec3892243cc085faf8a96b44bb8a5a9c':
Fix lockf for LP32.
2016-01-26 23:17:30 +00:00
Dimitry Ivanov
dc00a367f6
Merge "Move android_ network functions to LIBC_PRIVATE" am: 3a33b52981
...
am: d580a8b150
* commit 'd580a8b1505be000c748a380cae9ef4a510a3823':
Move android_ network functions to LIBC_PRIVATE
2016-01-26 23:17:25 +00:00
Elliott Hughes
44c4b858ec
Merge "Fix lockf for LP32."
...
am: a449fafc89
* commit 'a449fafc894c47305b49087d995e821e878e59c1':
Fix lockf for LP32.
2016-01-26 23:13:07 +00:00
Dimitry Ivanov
d580a8b150
Merge "Move android_ network functions to LIBC_PRIVATE"
...
am: 3a33b52981
* commit '3a33b5298101e959c83ea60003618d3052d0adfe':
Move android_ network functions to LIBC_PRIVATE
2016-01-26 23:13:02 +00:00
Elliott Hughes
a449fafc89
Merge "Fix lockf for LP32."
2016-01-26 22:56:36 +00:00
Dimitry Ivanov
3a33b52981
Merge "Move android_ network functions to LIBC_PRIVATE"
2016-01-26 22:47:56 +00:00
Elliott Hughes
03e65eb03b
Implement funopen64.
...
Bug: http://b/24807045
Change-Id: I161920978161389be34b707cc6ce8e05f760d552
2016-01-26 14:45:13 -08:00
Dimitry Ivanov
97cb4fbed2
Move android_ network functions to LIBC_PRIVATE
...
Make following functions platform-private:
android_getaddrinfofornet
android_getaddrinfofornetcontext
android_gethostbyaddrfornet
android_gethostbynamefornet
Bug: http://b/26794226
Change-Id: I0855b0b82721e4d24e918508931b4d5587fcae7d
2016-01-26 14:44:00 -08:00
Elliott Hughes
d4ae54f668
Fix lockf for LP32.
...
Bug: http://b/13077650
Change-Id: Ibbe2d907d23791c908475e0875a5c745ac948813
2016-01-26 14:32:55 -08:00
Elliott Hughes
9c9277714e
Merge "Factor out the waiting for children in bionic tests." am: ced73ee45e
...
am: 644f9d1ea9
* commit '644f9d1ea9af956082046393b0e5fc502d2c2dd3':
Factor out the waiting for children in bionic tests.
2016-01-26 21:55:42 +00:00
Elliott Hughes
c217342f36
Merge "Support _FILE_OFFSET_BITS=64 for most of <stdio.h>." am: 94bb0fab93
...
am: 1500a65adb
* commit '1500a65adbd7cd18c7bb6d0282947cd44dc76ef6':
Support _FILE_OFFSET_BITS=64 for most of <stdio.h>.
2016-01-26 21:55:38 +00:00