Commit graph

43337 commits

Author SHA1 Message Date
Spandan Das
cb4bd152d6 Merge "Add libz to static libs of libfdtrack" into main am: b8f71f8d79 am: d52350a22a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2925154

Change-Id: Ifd702a7f281809f70f098afb48ae65b89039ed81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 23:19:07 +00:00
Spandan Das
d52350a22a Merge "Add libz to static libs of libfdtrack" into main am: b8f71f8d79
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2925154

Change-Id: I084ea49382a6dcfef947cb3d899d39bd2671b8e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 23:13:12 +00:00
Spandan Das
b8f71f8d79 Merge "Add libz to static libs of libfdtrack" into main 2024-06-11 23:08:57 +00:00
Elliott Hughes
f589eac769 Merge "Add a missing riscv64 psabi constant." into main am: 5eb5f26e92 am: ce84cf0bd8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3125793

Change-Id: I414398b2d30297a3817281806b79680fba7ffcb3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 19:42:59 +00:00
Elliott Hughes
ce84cf0bd8 Merge "Add a missing riscv64 psabi constant." into main am: 5eb5f26e92
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3125793

Change-Id: Ib19bab7892cd1ccb5a222d26d2a7eebfb5415cc5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 19:23:17 +00:00
Elliott Hughes
5eb5f26e92 Merge "Add a missing riscv64 psabi constant." into main 2024-06-11 19:04:36 +00:00
Florian Mayer
3857b26f3c Merge "[HWASan] [16k] do not instrument getauxval" into main am: eff0fada9d am: 68790593e3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3124273

Change-Id: Ibf1d800effcbcac67f24529160ac48f01a75424a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 16:15:49 +00:00
Florian Mayer
68790593e3 Merge "[HWASan] [16k] do not instrument getauxval" into main am: eff0fada9d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3124273

Change-Id: I2641ac83e44c7ce0499bb4b6cf2d8d58b214b2a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 15:57:21 +00:00
Florian Mayer
eff0fada9d Merge "[HWASan] [16k] do not instrument getauxval" into main 2024-06-11 15:16:52 +00:00
Elliott Hughes
c221beccc1 Add a missing riscv64 psabi constant.
Also group all the RELR/arm64/riscv64 bits together rather than mixing them up slightly as we'd done so far.

Change-Id: Iff1ea2cfca9ff702b88aa2e7d09db46e2f34f965
2024-06-11 12:59:38 +00:00
Florian Mayer
d8328a931b [HWASan] [16k] do not instrument getauxval
To support page agnostic systems, we call getauxval before HWASan is
fully set up.

Bug: 315511637
Change-Id: I0b760943a23bd3a4d83bcc2182696a827dcbd446
2024-06-10 17:35:25 -07:00
Treehugger Robot
ab3a64c20a Merge "Fix anonymous class error" into main am: 44b0e7a725 am: af9c5273e5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3123411

Change-Id: Ie5754c593687f04493b655efc2296172886b0342
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 21:31:02 +00:00
Treehugger Robot
af9c5273e5 Merge "Fix anonymous class error" into main am: 44b0e7a725
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3123411

Change-Id: I072883b3aa38d9d2b0557dfa2effc415c97d48cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 21:01:09 +00:00
Treehugger Robot
44b0e7a725 Merge "Fix anonymous class error" into main 2024-06-10 20:41:48 +00:00
Zijun
eae85ad155 Fix anonymous class error
Fail to compile bionic/tests/complex_test.cpp when updating compiler due
to the conflict.

Bug: b/346349678
Test: change the clang version and then run mm to build
Change-Id: Ic22b7325b6e52006e620e13944f3f1d76030d782
2024-06-10 19:49:06 +00:00
Treehugger Robot
192f4e6828 Merge "[riscv][bionic] Prototype TLS Descriptor support" into main am: 7619ddbc4e am: 8be62724a0
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2940588

Change-Id: I721b29f0f180e65bea4e0323cd39b81c4bd422cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 12:32:45 +00:00
Treehugger Robot
8be62724a0 Merge "[riscv][bionic] Prototype TLS Descriptor support" into main am: 7619ddbc4e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2940588

Change-Id: Iec6b5a1b5d5302adc2452643a3adcb685f0784ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-10 12:13:50 +00:00
Treehugger Robot
7619ddbc4e Merge "[riscv][bionic] Prototype TLS Descriptor support" into main 2024-06-10 11:45:26 +00:00
Spandan Das
cc3a08e02e Add libz to static libs of libfdtrack
libz is no longer statically linked into libunwindstatck, so needs to be
added explicitly to this rdep

Bug: 281077552
Test: presubmits
Change-Id: Iadcee0c8b98ce4cfd3e238e7e4b3a3becc315e6c
2024-06-07 21:34:02 +00:00
Paul Kirth
4d4377881d [riscv][bionic] Prototype TLS Descriptor support
Add basic assembly stubs for TLS Descriptor support in the dynamic
linker, and enable several code paths related to TLSDESC for RISC-V.

Note: This patch requires an updated toolchain that supports TLSDESC
for RISC-V, and the `-mtls-dialect=` compiler option specifically.

Test: adb shell /data/nativetest64/bionic-unit-tests/bionic-unit-tests --gtest_filter=*tls*
Bug: 322984914
Change-Id: I74bd0fa216b44b4ca2c5a5a6aec37b3fc47b00d9
2024-06-07 14:30:22 -07:00
Elliott Hughes
19e49a1c09 Merge "Move the ILP32 mmap() hackery into legacy_32_bit_support.cpp." into main am: cbc07d4d31 am: 0031c5a935
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3118911

Change-Id: I9aef6205371070efa9ce76a7cce0796c6c47eceb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-07 11:12:04 +00:00
Elliott Hughes
0031c5a935 Merge "Move the ILP32 mmap() hackery into legacy_32_bit_support.cpp." into main am: cbc07d4d31
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3118911

Change-Id: I9a5922f1dd6fb6dd84352568799d8aec9d2e4837
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-07 10:55:52 +00:00
Elliott Hughes
cbc07d4d31 Merge "Move the ILP32 mmap() hackery into legacy_32_bit_support.cpp." into main 2024-06-07 10:36:10 +00:00
Elliott Hughes
4358d53cd9 Move the ILP32 mmap() hackery into legacy_32_bit_support.cpp.
Every time I look at mmap.cpp, I fail to realize it's only built for ILP32.

Also improve some of the commentary in SYSCALLS.TXT and legacy_32_bit_support.cpp.

Change-Id: Ieedfe800b437e30c060c3e8663b6d96d517dbf6f
2024-06-06 21:08:17 +00:00
Elliott Hughes
2ec6d398ce Merge "new.cpp: add sized operator delete." into main am: 3e8dd2b88c am: e6c408d79f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3115108

Change-Id: I7f6b2e1b288d4431e997f7588aff5eddec33d550
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-05 18:16:00 +00:00
Elliott Hughes
e6c408d79f Merge "new.cpp: add sized operator delete." into main am: 3e8dd2b88c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3115108

Change-Id: Iccd1fbfb0b80dcc4babfa8b47c799f387a42b2d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-05 17:57:03 +00:00
Elliott Hughes
3e8dd2b88c Merge "new.cpp: add sized operator delete." into main 2024-06-05 17:37:10 +00:00
Elliott Hughes
6405f248e2 Merge "<malloc.h>: warn on unused results for malloc_usable_size()." into main am: 988c807ff8 am: 7104dd9d55
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3113839

Change-Id: I246fd7b9c0b8804b4c46c493061ded1e4b945dea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-05 16:38:24 +00:00
Elliott Hughes
7104dd9d55 Merge "<malloc.h>: warn on unused results for malloc_usable_size()." into main am: 988c807ff8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3113839

Change-Id: I00b69a96b5376847a255dbcedd59654936bab006
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-05 16:08:44 +00:00
Elliott Hughes
988c807ff8 Merge "<malloc.h>: warn on unused results for malloc_usable_size()." into main 2024-06-05 15:48:45 +00:00
Elliott Hughes
2267f25e1f Merge "Add a README.md to docs/, as a guide to what we have available." into main am: bbc1befc2c am: c67976a64e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3112900

Change-Id: Icc68db2a4932c0e6faabf0f18637311d2ad93c22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-05 13:23:25 +00:00
Elliott Hughes
c67976a64e Merge "Add a README.md to docs/, as a guide to what we have available." into main am: bbc1befc2c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3112900

Change-Id: Idf54c8bb96c4cecdb894035e4b3ba8e9640ea73f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-05 13:01:31 +00:00
Elliott Hughes
bbc1befc2c Merge "Add a README.md to docs/, as a guide to what we have available." into main 2024-06-05 12:39:52 +00:00
Elliott Hughes
ad44152c38 new.cpp: add sized operator delete.
clang-19 and later default to C++14 sized deallocation. Currently we don't have C23's C equivalent of free_sized(), so we just implement these in terms of free() for now.

Bug: http://b/344993254
Change-Id: I708710aee3f7a684bfe494a96f7baed014acbe57
2024-06-05 12:26:56 +00:00
Christopher Ferris
9ebb86ac26 Merge "Update to v6.9 kernel headers." into main am: b9279b62c2 am: 02f33c7090
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3111723

Change-Id: I2ced174692ff326e3c31c0472aaadf910c572d04
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-04 18:58:43 +00:00
Elliott Hughes
f9feb7ad62 Merge "<stdio.h>: warn on some unused results." into main am: 5b57093ecc am: c87d87ca60
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3110539

Change-Id: I76672bdfc6b8fdc95c7621882feb0fff538d98c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-04 18:58:31 +00:00
Christopher Ferris
02f33c7090 Merge "Update to v6.9 kernel headers." into main am: b9279b62c2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3111723

Change-Id: Iff882dc72e0044d04ef7d9b9a19ef995425b0b9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-04 18:44:07 +00:00
Elliott Hughes
c87d87ca60 Merge "<stdio.h>: warn on some unused results." into main am: 5b57093ecc
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3110539

Change-Id: I4c15330dc742672b8ab675496543e5899c8f6e61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-04 18:43:51 +00:00
Christopher Ferris
b9279b62c2 Merge "Update to v6.9 kernel headers." into main 2024-06-04 18:22:22 +00:00
Elliott Hughes
5b57093ecc Merge "<stdio.h>: warn on some unused results." into main 2024-06-04 18:20:48 +00:00
Elliott Hughes
ecaa192929 Add a README.md to docs/, as a guide to what we have available.
I was actually here to add some new documentation, but realized there wasn't really a good place to put it...

Change-Id: I8a2fc93e61a89e87aa53dd0beb9dfcc6561687ca
2024-06-04 18:20:05 +00:00
Elliott Hughes
69ddb74135 <malloc.h>: warn on unused results for malloc_usable_size().
Not a security problem, but definitely a bug if you're calling this and ignoring the result, since it has no side-effects.

(All of the more important functions -- realloc() especially -- are already annotated.)

Change-Id: I217463518b4716befcc0ed9426648eafbfbbdde4
2024-06-04 15:32:45 +00:00
Elliott Hughes
857f0302a5 Merge "<unistd.h>: explain why getpagesize() is better than getauxval() as well as sysconf()." into main am: be241d1d6b am: 862d6713e2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3112242

Change-Id: I4b828915556098d0ce3272940749ccc6089056ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-04 11:39:34 +00:00
Elliott Hughes
862d6713e2 Merge "<unistd.h>: explain why getpagesize() is better than getauxval() as well as sysconf()." into main am: be241d1d6b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3112242

Change-Id: Ic5e61455b5b2157b647a77c6bb7581ba2a1ba2d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-04 11:20:18 +00:00
Elliott Hughes
be241d1d6b Merge "<unistd.h>: explain why getpagesize() is better than getauxval() as well as sysconf()." into main 2024-06-04 11:03:05 +00:00
Christopher Ferris
7f4c837186 Update to v6.9 kernel headers.
Kernel headers coming from:

Git: https://android.googlesource.com/kernel/common/
Branch: android-mainline
Tag: android-mainline-6.9

Test: Builds and bionic unit tests pass on raven.
Test: Able to log in to an Android GO 32 bit device.
Change-Id: If53a38bbb65c3c653ce790fe5c6e51597901a14e
2024-06-03 14:22:19 -07:00
Elliott Hughes
b63934c060 Merge "setjmp_test: riscv64 does have callee-save fp registers." into main am: 1bebfd3c10 am: 6246e95adf
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3096178

Change-Id: Ibf8d3247eba551ba3eeb4ca854338f706bc8ff2d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-03 20:40:40 +00:00
Elliott Hughes
544939d04b Merge "getpagesize(): remove "portability" claim." into main am: a84f9cffcf am: 7e6ca0d6b5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3112480

Change-Id: I6a3da98f860800b43b9f8e101f35c7d4f1475626
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-03 20:40:18 +00:00
Elliott Hughes
6246e95adf Merge "setjmp_test: riscv64 does have callee-save fp registers." into main am: 1bebfd3c10
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3096178

Change-Id: I15624144982e01cb4e8bbeadc753e670868f7103
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-03 20:33:36 +00:00
Elliott Hughes
7e6ca0d6b5 Merge "getpagesize(): remove "portability" claim." into main am: a84f9cffcf
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3112480

Change-Id: I3dc4c2fdf157f765ce264c031bda11d5ab9734e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-03 20:33:08 +00:00