Elliott Hughes
18a6fa2d2f
Merge "Microoptimize vdso lookup." into main
2023-12-13 15:46:32 +00:00
Elliott Hughes
cbcccd53eb
Microoptimize vdso lookup.
...
Actually reusing the hash table stuff from the linker would be a lot of
work (and the benefit unclear for so few symbols), but we can at least
break out of loops as soon as we have what we need.
Test: treehugger
Change-Id: I9cbe4636a3e3163bd302c3676eb674a4278dbf2e
2023-12-12 15:13:03 -08:00
Elliott Hughes
14b322b251
Merge "Closing the stream when the function returns" into main
2023-12-12 16:39:01 +00:00
Elliott Hughes
00ab1a5f95
Merge "Add a missing strtol() family test and a hex benchmark." into main
2023-12-12 14:27:30 +00:00
Elliott Hughes
4e62055462
Add a missing strtol() family test and a hex benchmark.
...
Benchmark added to test an optimization I'll send round next, test added
when an even bigger refactoring (as part of a more interesting
optimization) broke strtol() in a way the strtol() tests didn't notice.
Test: treehugger
Change-Id: Ic974900021107938dbbbe98648960adb102d9595
2023-12-11 16:57:03 -08:00
Florian Mayer
7fdb49f129
Merge "Plumb scudo_stack_depot_size to debuggerd_process_info" into main
2023-12-11 23:38:13 +00:00
Colin Cross
0ce2dcfad2
Merge "Remove bionic bp2build properties" into main
2023-12-11 23:12:54 +00:00
Yi Kong
20e2b13041
Merge "Re-enable LTO for libdl_android" into main
2023-12-11 15:58:13 +00:00
Yi Kong
bbd9c0e275
Re-enable LTO for libdl_android
...
The build breakage is now fixed by the current stable Clang, workaround
is no longer needed.
Test: presubmit
Bug: 169004486
Change-Id: Ieb1e35b0dbafe0fbe47c23ff310c803bf697a664
2023-12-11 16:06:02 +09:00
Juan Yescas
717debf261
Merge "16k: Fix sysconf_SC_ARG_MAX test to support 16k page sizes" into main
2023-12-08 21:01:54 +00:00
Elliott Hughes
4fa4354799
Merge "Remove obsolete workaround." into main
2023-12-08 19:56:42 +00:00
Juan Yescas
2da31cf7b0
16k: Fix sysconf_SC_ARG_MAX test to support 16k page sizes
...
The sysconf_SC_ARG_MAX test was failing because it didn't
handle the case for 16k. After fixing the test case, it will
handle 4k/16k page sizes and fail when there is another page
size.
Bug: 315174209
Test: atest -c bionic-unit-tests-static
Change-Id: Ie24a79be9d6790a1243be48d39f67acda485c37d
2023-12-08 11:51:39 -08:00
Juan Yescas
42e65898fe
Merge "16k: Fix pthread tests to support 4k/16k page sizes" into main am: 837e4d1f52
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2863353
Change-Id: I8d689ab3f0a3a8b846ec303c2b6b8859fb7acf96
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 18:09:25 +00:00
Elliott Hughes
cd93b8befb
Merge "Stop saying -fno-emulated-tls in tests." into main am: 9cf79d736f
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2865192
Change-Id: I0728e43468aa76c195648a5d3c9017ff2ee32d0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 18:08:57 +00:00
Juan Yescas
837e4d1f52
Merge "16k: Fix pthread tests to support 4k/16k page sizes" into main
2023-12-08 17:50:38 +00:00
Elliott Hughes
5c17d7d092
Remove obsolete workaround.
...
These were added because the tests wouldn't build without them, but they
do now.
Bug: http://b/132640749
Test: treehugger
Change-Id: Idc0aff08ce461bde5ed2cd816f04dcdef5d7af5d
2023-12-08 09:47:07 -08:00
Elliott Hughes
9cf79d736f
Merge "Stop saying -fno-emulated-tls in tests." into main
2023-12-08 17:33:59 +00:00
Yi Kong
b12bb43759
Merge "Fix -Winteger-overflow warning" into main am: 34714bfb95
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2863362
Change-Id: I64f28a2c7a735018c98dbab273de0d3928d07a3d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 15:24:32 +00:00
Elliott Hughes
3f5aaa8812
Merge "Use the canonical idiom for sockaddr_storage." into main am: bb261225e0
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2852650
Change-Id: Icd76f89c8e37f72c4861ef8ea1d5297d8ed9808b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 15:24:04 +00:00
Yi Kong
34714bfb95
Merge "Fix -Winteger-overflow warning" into main
2023-12-08 15:09:05 +00:00
Elliott Hughes
bb261225e0
Merge "Use the canonical idiom for sockaddr_storage." into main
2023-12-08 14:43:32 +00:00
Yi Kong
066b5d6380
Fix -Winteger-overflow warning
...
Test: presubmit
Change-Id: If9dee7c85efc3d14805c8e3ab85631223adac5ec
2023-12-08 19:53:31 +09:00
Juan Yescas
2fe3c7f701
Merge "16k: Set PTHREAD_STACK_MIN to 16384/8192 for 64-bit/32-bit archs" into main am: 93e0616836
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2864176
Change-Id: I675e9046534392aac8f1003a46ee672e19d00f5a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 04:41:40 +00:00
Juan Yescas
65af9a862a
16k: Fix pthread tests to support 4k/16k page sizes
...
Fix the pthread test cases to support 4k/16k page sizes.
Bug: 315174209
Test: atest -c bionic-unit-tests-static
Change-Id: Ie364e756120c396144f20372cac8239eed6c7bd8
2023-12-07 20:14:26 -08:00
Juan Yescas
93e0616836
Merge "16k: Set PTHREAD_STACK_MIN to 16384/8192 for 64-bit/32-bit archs" into main
2023-12-08 04:09:08 +00:00
Colin Cross
c03d928b6e
Remove bionic bp2build properties
...
Bug: 315353489
Test: m blueprint_tests
Change-Id: I4b320d88e6b59296e092ee46f56372cc6b85ba21
2023-12-07 16:56:16 -08:00
Juan Yescas
ae985d0f36
Merge "16k: Fix linker_utils_test to support 4kb and 16kb page sizes" into main am: 26cfc21243
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2864177
Change-Id: I19616d9d9034823234a6c9f9177d0e1c7032f7ec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 00:35:50 +00:00
Elliott Hughes
c7cc6d5902
Stop saying -fno-emulated-tls in tests.
...
This is now the default.
I've left the fuzzer workaround in for now, but we can come back and see
whether the fuzzer library has actually switched.
Test: treehugger
Change-Id: Ia3a09738396bfe915ceabec4a6019f4cedb0f39c
2023-12-07 16:27:08 -08:00
Juan Yescas
c065a2731a
16k: Set PTHREAD_STACK_MIN to 16384/8192 for 64-bit/32-bit archs
...
Set PTHREAD_STACK_MIN will be set to:
- 16384 for 64-bit arch
- 8192 for 32-bit arch
Bug: 315174209
Test: Built and start the targets
- aosp_cf_arm64_phone_pgagnostic
- aosp_cf_x86_64_phone
Change-Id: I8bb20a3433e615f9f80a0d52051f2e1635d4301a
2023-12-07 16:07:08 -08:00
Juan Yescas
26cfc21243
Merge "16k: Fix linker_utils_test to support 4kb and 16kb page sizes" into main
2023-12-08 00:03:04 +00:00
Juan Yescas
21621b012f
16k: Fix linker_utils_test to support 4kb and 16kb page sizes
...
Add support for 16kb page sizes in the test cases: page_start
and page_offset.
Bug: 315174209
Test: atest -c linker-unit-tests
Change-Id: Ibaae493a0930f3f2df390a6af6c8a988a682fe52
2023-12-08 00:01:04 +00:00
Treehugger Robot
5515be780e
Merge "Revert^2 "generate_notice.py: don't check for strings we don't use any more."" into main am: 73d0d3520a
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2864178
Change-Id: I7d7ebe4a067b2dcd8065afb0a2334442258a3f93
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-07 19:53:18 +00:00
Treehugger Robot
73d0d3520a
Merge "Revert^2 "generate_notice.py: don't check for strings we don't use any more."" into main
2023-12-07 19:12:28 +00:00
Elliott Hughes
a7fcc1be3f
Revert^2 "generate_notice.py: don't check for strings we don't use any more."
...
This reverts commit ef867550ac
.
Reason for revert: a change to a python script run as a commit hook cannot cause a golang crash during builds.
Change-Id: Id63d4ea370e36f890a140b9e1bc69482e3610c42
2023-12-07 15:45:50 +00:00
Bob Yang
e8eda8ae02
Merge "Revert "generate_notice.py: don't check for strings we don't use any more."" into main am: afd4f41337
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2864425
Change-Id: I63a49bc90a811dc2868f5584d677d24d5cd2055b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-07 08:53:16 +00:00
Bob Yang
afd4f41337
Merge "Revert "generate_notice.py: don't check for strings we don't use any more."" into main
2023-12-07 08:14:22 +00:00
Bob Yang
ef867550ac
Revert "generate_notice.py: don't check for strings we don't use any more."
...
This reverts commit adb8af2668
.
Reason for revert: DroidMonitor: Potential culprit for Bug 315240955 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
BUG: 315240955
BUG: 315240463
Change-Id: I9f7297c6ca48728a91f7f4640ac19f901effb3cc
2023-12-07 07:12:02 +00:00
Evgenii Stepanov
3f54874625
Merge changes from topic "revert-2709995-VVPYYBKIHY" into main am: 73a867a203
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2862867
Change-Id: Ib64b32632211e7b1e652c62122cb7ed904f15131
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-07 02:31:01 +00:00
Evgenii Stepanov
73a867a203
Merge changes from topic "revert-2709995-VVPYYBKIHY" into main
...
* changes:
Revert "Linker support for MTE globals."
Revert "Add a memtag-globals test to bionic"
2023-12-07 01:36:49 +00:00
Treehugger Robot
b8e817cb9c
Merge "generate_notice.py: don't check for strings we don't use any more." into main am: aa56f2a2e1
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2862870
Change-Id: I89b5a408a21e6c3ba45daae918ba43232854a858
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 22:38:14 +00:00
Treehugger Robot
0445f28282
Merge "Extend MemtagNoteTest." into main am: 12c86dabf9
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2855221
Change-Id: I6779c8e7efb60cdff99314f937d30b94df78f9a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 22:37:24 +00:00
Treehugger Robot
aa56f2a2e1
Merge "generate_notice.py: don't check for strings we don't use any more." into main
2023-12-06 22:06:07 +00:00
Treehugger Robot
12c86dabf9
Merge "Extend MemtagNoteTest." into main
2023-12-06 21:44:45 +00:00
Elliott Hughes
adb8af2668
generate_notice.py: don't check for strings we don't use any more.
...
Test: `repo upload .`
Change-Id: Idba382c22fb562ca9ba5b9bbdfd3800279b04c25
2023-12-06 13:19:53 -08:00
Evgenii Stepanov
d957e96b58
Extend MemtagNoteTest.
...
Calling free() during system property init results in premature
allocator initialization. This has been fixed with a Scudo change in
https://r.android.com/2853684 . This patch extends MemtagNoteTest to
verify that there are no stray PROT_MTE mappings when MTE is not
enabled in the binary.
Test: adb shell setprop arm64.memtag.bootctl memtag
adb reboot
bionic-unit-tests --gtest_filter=MemtagNoteTest.SEGV/*
Bug: 309698651
Change-Id: I6c7733d8799537d898c97b00d494ce6591cf44d9
2023-12-06 12:53:34 -08:00
Juan Yescas
36e5113ffb
Merge "bionic: Do not use PAGE_SIZE to define PTHREAD_STACK_MIN" into main am: b49314108d
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2860686
Change-Id: Ic70c347fa721d48c376d49f829878a2724025134
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 20:45:44 +00:00
Juan Yescas
b49314108d
Merge "bionic: Do not use PAGE_SIZE to define PTHREAD_STACK_MIN" into main
2023-12-06 19:58:01 +00:00
Treehugger Robot
877cf40fbe
Merge "Revert "Disable MTE globals tests under HWASan"" into main am: cd9814461f
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2862868
Change-Id: I8ed5eafa349dbac1c53a1997a39fb96dad1f7946
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 19:49:31 +00:00
Treehugger Robot
cd9814461f
Merge "Revert "Disable MTE globals tests under HWASan"" into main
2023-12-06 19:46:44 +00:00
Elliott Hughes
aecaca71a4
Merge "riscv64: pass a pointer to __riscv_hwprobe() to ifunc resolvers." into main am: 75539ab928
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2860689
Change-Id: I08da51a32b58320f62a2b6fbb09187e8049f243d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 19:46:17 +00:00