Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

bionic: Listed des commits

bionic


RSS
Révision l'heure Auteur
232c5f0 cm-13.0-x86 2016-08-08 19:40:41 Jaap Jan Meijer

Merge remote-tracking branch 'cm/cm-13.0' into cm-13.0-x86

9259508 2016-08-05 15:27:32 Marcin Chojnacki

linker: Avoid logcat spam with some blobs

Many of pre-kitkat blobs would emit a "text relocations" warning which
makes logcat completely unreadable.
This commit will hide this warning to prevent it.

Change-Id: I8f32b5bbfea33d732320b3ac29da6b0027fbd521
Reworked-by: Caio Oliveira <caiooliveirafarias0@gmail.com>

545862d 2016-08-05 00:15:45 Tom Marshall

bionic: Sort and cache hosts file data for fast lookup

The hosts file is normally searched linearly. This is very slow when
the file is large. To mitigate this, read the hosts file and sort the
entries in an in-memory cache. When an address is requested via
gethostbyname or getaddrinfo, binary search the cache.

In case where the cache is not available, return a suitable error code
and fall back to the existing lookup code.

This has been written to behave as much like the existing lookup code as
possible. But note bionic and glibc differ in behavior for some corner
cases. Choose the most standard compliant behavior for these where
possible. Otherwise choose the behavior that seems most reasonable.

Change-Id: I3b322883cbc48b0d76a0ce9d149b59faaac1dc58

3d28a8a 2016-07-27 02:07:28 Jaap Jan Meijer

Merge remote-tracking branch 'x86/marshmallow-x86' into cm-13.0-x86

4e64650 2016-07-18 11:05:52 Neil Fuller

Move tzdata scripts from bionic to external/icu

The scripts affect files in external/icu, bionic
and the generated files affect libcore. The files must
be updated together so there is no "obvious" home.

OEM developers seem to want to update ICU
themselves and have been asking how. Moving the
scripts to external/icu and splitting the ICU generation
code into a sub-script they can run makes some sense.

Bug: 23419215
Change-Id: Ia26fa526fd2b560a79f36d327a10e262a85db752

0a143d0 2016-07-02 00:45:04 Steve Kondik

libc: Fix invalid offset warning with Clang

Change-Id: I71274a6f592356a259ccdbe9c09383bc75e2d26b

02972e7 2016-06-28 16:54:31 Junichi Uekawa

Do not depend on host bits to get the right size to write.

x86_64 32-bit or 64-bit relocations do not depend on ELF bit size, they
are 32-bit or 64-bit respectively.

Known compiler that emits such code is nacl-clang which emits
R_X86_64_PC32 which should write 32 bits but ended up writing 64 bits.

Change-Id: Ibb6b484c0fea6a7e291362148e8ac749d6674529

2a016b8 2016-06-28 03:13:36 Kyle Repinski

cortex-a9: Fix reference to __memcpy_base_aligned.

With a different memcpy, __memcpy_base_aligned ceased to exist.
Instead, point to the name defined by whatever includes memcpy_base.S

Change-Id: I242cf49cbada35337ba155d7f170e86a905ff55f

e025056 android-x86-6.0-r1 android-x86-6.0-r2 2016-05-05 18:32:25 Elliott Hughes

Add prlimit to LP32.

Bug: http://b/24918750
Change-Id: I0151cd66ccf79a6169610de35bb9c288c0fa4917

4f3242f 2016-05-05 18:32:25 Chih-Wei Huang

add syscalls ioperm and iopl

c9d6cd3 2016-05-05 18:32:25 Chih-Wei Huang

change PROP_NAME_MAX to 128

e87a5b3 2016-05-01 11:51:28 Steve Kondik

bionic: Use a more simple strrchr for arm64

* Current version seems like overkill, and it doesn't compile with
Clang. Use a simplified version from ARM.

Change-Id: I2fe5467b6a504ea04b5f28a08d92e7c2306772d0

b24ae58 2016-04-19 09:21:05 Jessica Wagantall

Android 6.0.1 release 30
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAlcMGogACgkQ6K0/gZqxDnh5jgCgkBAv48RNJoI+8EI2R2qOUQIR
ZVAAn2jV/riUTertL4kdZKF7XTzJgwf/
=/g8E
-----END PGP SIGNATURE-----

Merge tag 'android-6.0.1_r30' into HEAD

Ticket: RM-234
Android 6.0.1 release 30

Change-Id: I67a692b84fdc2e0ecbe83870ea3520a746130742

98ea086 2016-04-14 03:23:18 Tom Marshall

bionic: Teach fnmatch(3) to handle UTF-8 characters in patterns

This is NOT comprehensive UTF-8 support. It is just a quick hack to
make alternation work in bracket expressions so that the system file
manager can find files with non-ASCII names in root mode. Bracket
expressions that contain non-ASCII ranges are explicitly avoided to
avoid the complexities of unicode collation rules.

Things like the following will now work:

fnmatch("те[с][т].jpg", "тест.jpg", 0);
fnmatch("test[αβγ].txt", "testβ.txt", 0);

Things like the following will still fail:

fnmatch("тес[а-я].txt", "тест.txt", 0);

Jira: CYNGNOS-2336

Change-Id: If38dc6692bc22d20128b0cd8a7632754a496d7fb

f6164e6 2016-03-11 11:13:14 Steve Kondik

Android 6.0.1 release 22
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAlbd4SUACgkQ6K0/gZqxDnjLBQCeJlhVklsy5HprOld9klTRNrz6
0pMAn0UvDUyfw+xNYGukljObL3tlWdDY
=uFy8
-----END PGP SIGNATURE-----

Merge tag 'android-6.0.1_r22' of https://android.googlesource.com/platform/bionic into cm-13.0

Android 6.0.1 release 22

f6f0445 2016-03-11 03:53:19 Christopher R. Palmer

linker: Allow text-relocs for x86 (only)

This effectively reverts

https://android.googlesource.com/platform/bionic/+/e4ad91f86a47b39612e030a162f4793cb3421d31%5E%21/#F0

for x86 platforms. Unfortunately, this seems like it is required
if we are going to support ffmpeg. The ffmpeg team decreed that they
require text relocations for x86 (only) and that they would not
fix the fact that android 6.0 makes ffmpeg unusable on x86:

https://trac.ffmpeg.org/ticket/4928

Change-Id: I68397f4d62f4f6acd8e0d41b7ecdc115969b890a

e31f2d8 2016-03-10 02:07:04 Erik Kline

Don't leak sockets if setsockopt() or fchown() fail.

Change-Id: Idcf8c08ff50d21c3a04b7ef80c4044f3f9762f2b

1bb333c 2016-03-10 01:52:02 Josh Gao

Fix GNU/POSIX basename headers.

Including glibc's <libgen.h> will result in the user getting the POSIX
version of basename always, regardless of when it is included relative
to <string.h>. Prior to this patch, our implementation would result in
the one that's included first winning.

Bug: http://b/25459151
Change-Id: Id4aaf1670dad317d6bbc05763a84ee87596e8e59

4954aab 2016-03-09 19:01:46 Elliott Hughes

Add prlimit to LP32.

Bug: http://b/24918750
Change-Id: I0151cd66ccf79a6169610de35bb9c288c0fa4917

12123df 2016-02-27 09:55:45 Neil Fuller

Update timezone data to 2016a

Changes affecting future time stamps

America/Cayman will not observe daylight saving this year after all.
Revert our guess that it would. (Thanks to Matt Johnson.)

Asia/Chita switches from +0800 to +0900 on 2016-03-27 at 02:00.
(Thanks to Alexander Krivenyshev.)

Asia/Tehran now has DST predictions for the year 2038 and later,
to be March 21 00:00 to September 21 00:00. This is likely better
than predicting no DST, albeit off by a day every now and then.

Changes affecting past and future time stamps

America/Metlakatla switched from PST all year to AKST/AKDT on
2015-11-01 at 02:00. (Thanks to Steffen Thorsen.)

America/Santa_Isabel has been removed, and replaced with a
backward compatibility link to America/Tijuana. Its contents were
apparently based on a misreading of Mexican legislation.

Changes affecting past time stamps

Asia/Karachi's two transition times in 2002 were off by a minute.
(Thanks to Matt Johnson.)

Bug: 26833368
Change-Id: I5af1d69f8ca767369f1cbc4aa863280b960777e0

02b1d48 2016-02-15 01:42:41 Christopher R. Palmer

bionic: linker: Load shim libs *before* the self-linked libs

By loading them earlier, this allows us to override a symbol in
a library that is being directly linked.

I believe this explains why some people have had problems shimming
one lib but when the changet he shim to be against a different
lib it magically works.

It also makes it possible to override some symbols that were
nearly impossible to override before this change. For example, it is
pretty much impossible to override a symbol in libutils without
this change because it's loaded almost everywhere so no matter
where you try to place the shimming, it will be too late and
the other symbol will have priority.

In particularly, this is necessary to be able to correctly
shim the VectorImpl symbols for dlx.

Change-Id: I461ca416bc288e28035352da00fde5f34f8d9ffa

51ad57b 2015-12-22 08:38:38 Scott Mertz

libc: ARM64: kryo: use generic memmove routine

The optimized memmove on commit 95cc2b990baffb4f1149c16647d4e2e2069054e5
causes odd runtime crashes on kryo. For example, surfaceflinger crashes in
prebuilt adreno libraries when trying to generate the shader cache:

x0 0000007f827256c0 x1 000000000000000b x2 0000007fcd7dfa30 x3 0000000000000000
x4 0000000000000000 x5 0000000000000003 x6 00000000000000ff x7 0000000000000003
x8 0000007f825efa18 x9 0000007f825efa18 x10 0000000000000100 x11 0000000000001000

x16 000000000000006f x17 0000000000000003 x18 0000000000000001 x19 0000007f825f1040
x20 0000007fcd7dfa30 x21 0000007fcd7df990 x22 0000007f88424c10 x23 0000000000000000
x24 0000007fcd7df970 x25 0000007fcd7dfa50 x26 0000000000000004 x27 0000000000000010
x28 0000007fcd7dfa30 x29 0000007fcd7df780 x30 0000007f86ef92b4
sp 0000007fcd7df780 pc 0000007f86ee8d78 pstate 0000000020000000

trace:
pc 00000000009ffd78 /system/vendor/lib64/libllvm-glnext.so
pc 0000000000a102b0 /system/vendor/lib64/libllvm-glnext.so (llvm::BitcodeReader::ParseFunctionBody(llvm::Function*)+904)
pc 0000000000a14020 /system/vendor/lib64/libllvm-glnext.so (llvm::BitcodeReader::Materialize(llvm::GlobalValue*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)+340)
pc 0000000000a0fe14 /system/vendor/lib64/libllvm-glnext.so (llvm::BitcodeReader::MaterializeModule(llvm::Module*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)+96)
pc 00000000003b503c /system/vendor/lib64/libllvm-glnext.so (llvm::Module::MaterializeAll(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)+36)
pc 00000000003b5068 /system/vendor/lib64/libllvm-glnext.so (llvm::Module::MaterializeAllPermanently(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)+16)
pc 0000000000a0faa0 /system/vendor/lib64/libllvm-glnext.so (llvm::ParseBitcodeFile(llvm::StringRef, llvm::LLVMContext&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)+32)
pc 0000000000cf3db4 /system/vendor/lib64/libllvm-glnext.so (ShaderObjects::constructLLVMModule(void*, CompilerContext*, llvm::OwningPtr<llvm::Module>*, E_QGLC_SHADERTYPE)+520)
pc 0000000000c76c4c /system/vendor/lib64/libllvm-glnext.so (ESXLinker::bcConstruct()+440)
pc 0000000000c843cc /system/vendor/lib64/libllvm-glnext.so (SOLinker::linkShaders(QGLC_LINKPROGRAM_DATA*, QGLC_LINKPROGRAM_RESULT*)+92)
pc 0000000000c74cbc /system/vendor/lib64/libllvm-glnext.so (CompilerContext::LinkProgram(unsigned int, QGLC_SRCSHADER_IRSHADER**, QGLC_LINKPROGRAM_DATA*, QGLC_LINKPROGRAM_RESULT*)+496)
pc 0000000000d057a0 /system/vendor/lib64/libllvm-glnext.so (QGLCLinkProgram(void*, unsigned int, QGLC_SRCSHADER_IRSHADER**, QGLC_LINKPROGRAM_DATA*, QGLC_LINKPROGRAM_RESULT*)+76)
pc 00000000001a49c4 /system/vendor/lib64/egl/libGLESv2_adreno.so (EsxShaderCompiler::CompileProgram(EsxContext*, EsxProgram const*, EsxLinkedList const*, EsxInfoLog*)+1380)
pc 000000000018d5b8 /system/vendor/lib64/egl/libGLESv2_adreno.so (EsxProgram::Link(EsxContext*)+408)
pc 000000000012e6bc /system/vendor/lib64/egl/libGLESv2_adreno.so (EsxContext::LinkProgram(EsxProgram*)+60)
pc 000000000010be44 /system/vendor/lib64/egl/libGLESv2_adreno.so (glLinkProgram+36)
pc 0000007f88bddad0 <unknown>
pc 0000007f88bddf60 <unknown>
pc 0000007f88be18b8 <unknown>
pc 0000007f88bdfbb0 <unknown>
pc 0000007f88bca594 <unknown>
pc 0000007f88bcb350 <unknown>
pc 0000007f88bc9fec <unknown>
pc 0000007f88bc8f28 <unknown>
pc 0000007f88bc8c90 <unknown>
pc 0000007f88af8ed4 <unknown> (android::Looper::pollInner(int)+312)
pc 0000007f88af920c <unknown> (android::Looper::pollOnce(int, int*, int*, void**)+80)
pc 0000007f88bc5034 <unknown>
pc 0000007f88bc8784 <unknown> (android::SurfaceFlinger::run()+20)
pc 0000007f88c8c190 <unknown>
pc 000000000001bcd8 /system/lib64/libc.so (__libc_init+100)
pc 0000007f88c8bfcc <unknown>

Change-Id: I9621f98b6683a3662b654f84c31ed0247ee81900

6d79500 2015-12-13 02:21:38 Christopher R. Palmer

bionic: Do not allow LD_SHIM_LIBS for setuid executables

That's really not safe...

Change-Id: If79af951830966fc21812cd0f60a8998a752a941

d45ca0d 2015-12-12 21:33:51 Danny Baumann

Make shim lib load failure non-fatal.

Instead, print an appropriate warning message. Aborting symbol
resolution on shim lib load failure leads to weird symbol lookup
failures, because symbols in libraries referenced after the one loading
the shim won't be loaded anymore without a log message stating why that
happened.

Change-Id: Ic3ad7095ddae7ea1039cb6a18603d5cde8a16143

3dc9613 2015-12-11 02:40:37 André Pinela

libc: ARM64: denver64: optimized memmove breaks denver

The optimized memmove on commit 95cc2b990baffb4f1149c16647d4e2e2069054e5
breaks the boot on denver64/flounder, so we should use the old
memmove to keep the generic memmove optimized.

Change-Id: Ie5e4b5b56d0aeb4b4c22eb6450ac702c05b2ece2
Signed-off-by: André Pinela <sheffzor@gmail.com>

4c6ac31 2015-12-08 14:52:59 Subash Abhinov Kasiviswanathan

bionic: Notify userspace about packets with CHECKSUM_UNNECESSARY

tpacket already notifies userspace about packets filtered with
ip_summed field set to CHECKSUM_PARTIAL.

Add a new flag for tpacket framework to pass to userspace for
packets with ip_summed field CHECKSUM_UNNECESSARY.

Change-Id: Icf308143a76269ff38c3238f1ca235b97e57dde9

4238c50 2015-12-08 09:20:48 Steve Kondik

Android 6.0.1 release 3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAlZmBAMACgkQ6K0/gZqxDnhHTQCaAoRcJddntsjc5ziZkwsf5uNS
L2MAnRniDvPmlFDIL35NmHcT1g5sDiIA
=hezZ
-----END PGP SIGNATURE-----

Merge tag 'android-6.0.1_r3' of https://android.googlesource.com/platform/bionic into cm-13.0

Android 6.0.1 release 3

91d934a 2015-12-02 03:17:07 Christopher R. Palmer

Revert "Revert "linker: Reset the active shim libs each time we do a dlopen""

This reverts commit fd0140b028dedabc572f4659cc015edfeee3cd60.

Change-Id: I42b3acfcdc6b84251a396b9e42604bb5685196bd

8110520 2015-12-02 02:40:58 Christopher R. Palmer

linker: Don't try to walk the g_active_shim_libs when doing dlsym

This is a bug in the original shim_lib implementation which was
doing the shim lib resolution both when loading the libraries
and when doing the dynamic symbol resolution.

Change-Id: Ib2df0498cf551b3bbd37d7c351410b9908eb1795

3a2debf 2015-12-01 19:22:52 Mao Jinlong

kernel-header : add alarm type and clock type for power off alarm

Use dedicated alarm type and clock type for poweroff alarm.

Change-Id: I937730994c6690b21868745e192d8c12ab818776

Afficher sur ancien navigateur de dépôt.