Commit graph

43351 commits

Author SHA1 Message Date
Elliott Hughes
831c924a1c Merge "utils.h: quote regex match failure messages." into main am: e852abd1fc
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092844

Change-Id: Ibd5d6462e9d46d9bb0775919ad3ce2737e4dbbe4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-20 18:50:35 +00:00
Elliott Hughes
e852abd1fc Merge "utils.h: quote regex match failure messages." into main 2024-05-20 18:21:27 +00:00
Elliott Hughes
c2d1613407 Merge "Add riscv64 implementation of __get_bionic_tcb_for_thread()." into main am: 0b29ce212a am: 4172d9d305
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3094537

Change-Id: Id6cecc1b6dbbfdd4244473ad8d55bc4377974710
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-20 14:04:41 +00:00
Elliott Hughes
4172d9d305 Merge "Add riscv64 implementation of __get_bionic_tcb_for_thread()." into main am: 0b29ce212a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3094537

Change-Id: I5056ce2b606a3b08b52cbaf56277a638922915df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-20 13:46:59 +00:00
Elliott Hughes
0b29ce212a Merge "Add riscv64 implementation of __get_bionic_tcb_for_thread()." into main 2024-05-20 13:26:22 +00:00
Elliott Hughes
abbec338f9 utils.h: quote regex match failure messages.
This still won't be easy to read, but it should at least be "less bad".

Change-Id: I14ecf06ffcc54a4bb48003e8cba3b731d8a0073d
2024-05-20 13:12:09 +00:00
kellyhung
12b2042a3f Convert Android.mk under bionic to Android.bp
Bug: b/311284462
Test: m bionic-compile-time-tests1-clang++; m bionic-compile-time-tests2-clang++

Change-Id: I538dda9f56f0c85bf3779cc55f721a7e1c1fcc5a
2024-05-20 01:13:54 +08:00
Elliott Hughes
09c660bf75 Add riscv64 implementation of __get_bionic_tcb_for_thread().
Bug: http://b/339287219
Change-Id: I2b6f2603cd34e1575d575565c369663bfcdf9be1
2024-05-17 17:18:57 +00:00
Treehugger Robot
fb104fba30 Merge "linker: update non-PIE error message." into main am: e78370e5f8 am: 0fc8dc3d37
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3093040

Change-Id: Ia581967fbe7fd3fde0abc06a80b9748f4c604e0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-17 14:28:52 +00:00
Treehugger Robot
0fc8dc3d37 Merge "linker: update non-PIE error message." into main am: e78370e5f8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3093040

Change-Id: I832c863fe7804c7faf10d5f598126cf15662a24f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-17 14:11:48 +00:00
Treehugger Robot
e78370e5f8 Merge "linker: update non-PIE error message." into main 2024-05-17 13:51:17 +00:00
Elliott Hughes
ed292d8f6d Merge "linker: remove useless comments." into main am: bab8f345a6 am: c5d0a99496
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3093199

Change-Id: If251b44779446e5f8b560cdd440da0eb91c21349
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-17 12:41:57 +00:00
Elliott Hughes
c5d0a99496 Merge "linker: remove useless comments." into main am: bab8f345a6
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3093199

Change-Id: Iab70f941b147387b101399caf7c8fd5c881a7a52
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-17 12:29:30 +00:00
Elliott Hughes
71abb3dcf4 linker: update non-PIE error message.
Also remove the commentary, which isn't really relevant in 2024.

Change-Id: I9d17159daddc6717a2255d956c9a90820fe4d17a
2024-05-17 12:16:16 +00:00
Elliott Hughes
bab8f345a6 Merge "linker: remove useless comments." into main 2024-05-17 12:13:04 +00:00
Elliott Hughes
03b2187996 Merge "Minor <android/dlext.h> documentation improvements." into main am: 88908db595 am: 05b5f5b3b7
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092840

Change-Id: I6e188d1260584949249069cbf8691c3450581237
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 22:01:22 +00:00
Elliott Hughes
322e9ecc3e linker: remove useless comments.
The API level in the code is more meaningful to more people anyway.

Change-Id: Ifc6a45fc16039881aa7863fbff09b5902e139d54
2024-05-16 21:46:24 +00:00
Elliott Hughes
05b5f5b3b7 Merge "Minor <android/dlext.h> documentation improvements." into main am: 88908db595
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092840

Change-Id: Ia39aac36e4a95a2328666bf76a19a58e707497df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 21:43:29 +00:00
Elliott Hughes
88908db595 Merge "Minor <android/dlext.h> documentation improvements." into main 2024-05-16 21:21:24 +00:00
Treehugger Robot
bdce06247a Merge "Update <android/api-level.h>." into main am: bdba54d9c5 am: 8bd8f72e75
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092183

Change-Id: Ia03c01d90194d3c34745a0be5b3e53cf51327458
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 21:16:23 +00:00
Treehugger Robot
8bd8f72e75 Merge "Update <android/api-level.h>." into main am: bdba54d9c5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092183

Change-Id: I6dec44980bcdec66c4e78c2c1468647f41f964bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 20:59:23 +00:00
Treehugger Robot
a1509be1e9 Merge "Update <system_properties.h> documentation." into main am: 923b48c1c5 am: bd3759fb78
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092839

Change-Id: I5ef120d7d0927ff99739509b7b1f29b672230381
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 20:43:45 +00:00
Treehugger Robot
bdba54d9c5 Merge "Update <android/api-level.h>." into main 2024-05-16 20:35:55 +00:00
Treehugger Robot
bd3759fb78 Merge "Update <system_properties.h> documentation." into main am: 923b48c1c5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092839

Change-Id: I66db4d91cf5c5f2c87d62f56bb25cd7580a2e786
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 20:24:05 +00:00
Treehugger Robot
79b380d31b Merge "Document <link.h>." into main am: 69fa31a8d5 am: ba97f9854b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092560

Change-Id: Ib0c9ac5aa426b890394a1c91d87b5a66f00742eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 20:00:01 +00:00
Treehugger Robot
923b48c1c5 Merge "Update <system_properties.h> documentation." into main 2024-05-16 19:57:13 +00:00
Treehugger Robot
ba97f9854b Merge "Document <link.h>." into main am: 69fa31a8d5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3092560

Change-Id: I25b545240674d1c4040236b2180952824a4eda87
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-16 19:37:19 +00:00
Treehugger Robot
69fa31a8d5 Merge "Document <link.h>." into main 2024-05-16 19:20:36 +00:00
Elliott Hughes
c2622a5d4c Minor <android/dlext.h> documentation improvements.
Change-Id: I7ba1228c938e2fce858beb126e1e81620bba0459
2024-05-16 19:02:36 +00:00
Elliott Hughes
3772ae4f96 Update <system_properties.h> documentation.
Change-Id: I70de8dee963d00c480e0cb2faa9988d1d6c76d05
2024-05-16 18:45:03 +00:00
Elliott Hughes
d6c3a078bc Update <android/api-level.h>.
Change-Id: Id1522fdaf3041dcd3f296a716e8a2a1936c389e8
2024-05-16 18:31:47 +00:00
Elliott Hughes
72b10fc254 Document <link.h>.
I was only here to stop saying "Android R", which doesn't mean much to most app developers, but while I'm here...

Change-Id: I0ffd5d679747491d338064e36efc80b2b82e9e06
2024-05-16 18:10:23 +00:00
Treehugger Robot
be9974c9bc Merge "[MTE] cleanup: factor out BIONIC_MEMTAG_UPGRADE_SECS handling" into main am: 03a4448dcf am: 2355b06180
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3083952

Change-Id: I9f1d1b1eb24a740723881c972bc54110d6f62ca1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 20:13:45 +00:00
Treehugger Robot
2355b06180 Merge "[MTE] cleanup: factor out BIONIC_MEMTAG_UPGRADE_SECS handling" into main am: 03a4448dcf
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3083952

Change-Id: I44ae36a0c20a31a04002bae0a89dfe7996f1b7a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 19:54:17 +00:00
Treehugger Robot
03a4448dcf Merge "[MTE] cleanup: factor out BIONIC_MEMTAG_UPGRADE_SECS handling" into main 2024-05-15 19:40:01 +00:00
Christopher Ferris
9fbf7ebd3f Merge "Skip stack protector test on HWASan." into main am: f0247b6b68 am: 04f7765e16
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3083273

Change-Id: Ibce3e4a93daee2d738676744d6c477280db4d716
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 18:33:27 +00:00
Christopher Ferris
04f7765e16 Merge "Skip stack protector test on HWASan." into main am: f0247b6b68
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3083273

Change-Id: Ie9b6f6830fce1c922c882f1a2b87b801d7244287
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 18:11:46 +00:00
Christopher Ferris
f0247b6b68 Merge "Skip stack protector test on HWASan." into main 2024-05-15 17:53:50 +00:00
Florian Mayer
f3326581c0 [MTE] cleanup: factor out BIONIC_MEMTAG_UPGRADE_SECS handling
This makes __libc_init_mte easier to read.

Change-Id: I2826f62e53895093d1631d4e6c7e3ff844cf9def
2024-05-15 16:39:36 +00:00
Elliott Hughes
3469e7df9b Tidy and document the inline/__inline/__inline__ situation.
We can (and should) use `inline` in C++ but not in C headers that
need to support ANSI/C89/C90. `__inline__` works everywhere, but
traditionally we've used the BSD `__inline` in public headers.

Change-Id: I920e0a1f5fcd01cf8ddd89240ef66b25c50378d7
2024-05-15 16:06:07 +00:00
Yi Kong
f8196c556c Merge "Use vmov.f64 for SET_FREG" into main am: 3c0173d988 am: 185fccad47
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3086265

Change-Id: Ib1630ffc3482a856f6986b8ca4535257907a7bed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 14:47:31 +00:00
Yi Kong
185fccad47 Merge "Use vmov.f64 for SET_FREG" into main am: 3c0173d988
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3086265

Change-Id: I059d7c5b76676e72f8c3f0fd074156cf04abbc3f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 14:31:47 +00:00
Yi Kong
3c0173d988 Merge "Use vmov.f64 for SET_FREG" into main 2024-05-15 13:56:47 +00:00
Yi Kong
11f696ad00 Use vmov.f64 for SET_FREG
When implemented using fcpyd, Clang sometimes generates redundant vmovs
after SET_FREGS on ARM32 and touches registers set, causing the test to
fail. Use vmov.f64 instead and that avoids the issue.

Test: atest CtsBionicTestCases:setjmp#setjmp_fp_registers -- --abi armeabi-v7a
Test: atest CtsBionicTestCases:setjmp#setjmp_fp_registers -- --abi arm64-v8a
Bug: 337903801
Change-Id: Ibd89b120f8a3cc80c34905069469fd244a902d1e
2024-05-15 15:29:29 +09:00
Treehugger Robot
599b3b0616 Merge "Revert "Use inline keyword without underscores consistently"" into main am: d47975728d am: 397f74e4e8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3086365

Change-Id: Ic7d583c906af35ffc313663888366fc51533ea3e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 00:54:14 +00:00
Treehugger Robot
397f74e4e8 Merge "Revert "Use inline keyword without underscores consistently"" into main am: d47975728d
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3086365

Change-Id: Ia8a10653b3420d9b094a4cd3688bc0358a034fa0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-15 00:37:12 +00:00
Christopher Ferris
0e0d600523 Skip stack protector test on HWASan.
On HWASan, it's not really possible to test scribbling on the
stack protector, so skip the test in this case.

Bug: 339529777

Test: Verified stack protector test is skipped.
Change-Id: I541416f8a84f649f83868574907b1e445d990aa0
2024-05-14 17:31:27 -07:00
Treehugger Robot
d47975728d Merge "Revert "Use inline keyword without underscores consistently"" into main 2024-05-15 00:18:01 +00:00
Dan Albert
2237fcf1fa Revert "Use inline keyword without underscores consistently"
This reverts commit 58f06e1112.

Bare `inline` is not ANSI C compatible, and NDK users may be using
that.

Test: treehugger
Change-Id: I82c5424522142001cd59da63ef3fd440014451ad
2024-05-14 17:55:54 +00:00
Treehugger Robot
310f5fc09b Merge "Rename GWP-ASan android_mallopt() arguments" into main am: d06e2e7b29 am: 3faf31f694
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3071762

Change-Id: Ic77fd878fb32ec42fdca27d78138debc8bc922ea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-09 17:37:32 +00:00