Commit graph

43339 commits

Author SHA1 Message Date
Aditya Kumar
75d71bf86b Merge "[RISC-V] Add misaligned load store tests" into main am: e7efd77d2c am: 7dd34af520
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3063184

Change-Id: Iadfd4332f48c81196c566d729b65413e9241d82c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-26 17:32:59 +00:00
Aditya Kumar
7dd34af520 Merge "[RISC-V] Add misaligned load store tests" into main am: e7efd77d2c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3063184

Change-Id: Ia8acee4ef6e120955e0a7f58bbe9aaa4a681b612
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-26 17:17:53 +00:00
Aditya Kumar
e7efd77d2c Merge "[RISC-V] Add misaligned load store tests" into main 2024-04-26 16:56:06 +00:00
Elliott Hughes
285b10e909 Merge "get_executable_info: minor clarification." into main am: f789ddab1e am: 1012971bba
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3061763

Change-Id: If912f08e56cda6b4bd054e42dee46994774da6e5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-26 15:47:28 +00:00
Elliott Hughes
1012971bba Merge "get_executable_info: minor clarification." into main am: f789ddab1e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3061763

Change-Id: I60ac221c2e6cef35479541c159e7d93ad0432572
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-26 15:32:42 +00:00
Elliott Hughes
f789ddab1e Merge "get_executable_info: minor clarification." into main 2024-04-26 15:04:19 +00:00
Ryan Prichard
b6c2904aa8 Merge "Revert "Switch the loader to a noexcept version of libc++"" into main am: fc306b951b am: ae21ee45c6
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3061871

Change-Id: I257b564a76f6b3b51e4623f339fb21783c55875b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-26 02:37:41 +00:00
Ryan Prichard
ae21ee45c6 Merge "Revert "Switch the loader to a noexcept version of libc++"" into main am: fc306b951b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3061871

Change-Id: I8567fa3c99e7fe3b79beffb92624b4454b1b9f92
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-26 02:23:04 +00:00
Ryan Prichard
fc306b951b Merge "Revert "Switch the loader to a noexcept version of libc++"" into main 2024-04-26 01:52:16 +00:00
Ryan Prichard
698ca39c9e Revert "Switch the loader to a noexcept version of libc++"
Revert submission 2675705-use-prebuilt-libcxx

Reason for revert: breaks some Android tests (b/337120479, b/337121737, b/337122511)

Reverted changes: /q/submissionid:2675705-use-prebuilt-libcxx

Bug: 337120479
Bug: 337121737
Bug: 337122511
Change-Id: Ic5256fb1b4f09967ec29f36d8bdf96a16649ca05
2024-04-26 01:00:13 +00:00
AdityaK
24705dbdb5 [RISC-V] Add misaligned load store tests
hwprobe test may be insufficient to guarantee fast (or even supported) unaligned access.
Test case based on: https://github.com/llvm/llvm-project/issues/88029

Previous commit got reverted due to compiler errors(b/336800888).
Not sure why the errors were not detected in pre-submit builds.

Bug: https://github.com/google/android-riscv64/issues/142

Change-Id: If1c4150701298c0f351baa9ce1870509a00c250a
2024-04-25 16:15:00 -07:00
Automerger Merge Worker
e0573de2db Merge "Merge "Switch the loader to a noexcept version of libc++" into main am: 686803d2a9 am: eb8bdded4b" into main 2024-04-25 20:02:24 +00:00
Ryan Prichard
83f5906d79 Merge "Switch the loader to a noexcept version of libc++" into main am: 686803d2a9 am: eb8bdded4b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2959271

Change-Id: Ib9d290b49276b8f01e7f4341848cbcc0faaecbea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-25 20:02:12 +00:00
Ryan Prichard
48d0ab5993 Merge "Switch the loader to a noexcept version of libc++" into main am: 686803d2a9 am: eb8bdded4b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2959271

Change-Id: I7b69bee46e050a7a8ad40ac851a66ed37035751d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-25 20:02:02 +00:00
Ryan Prichard
eb8bdded4b Merge "Switch the loader to a noexcept version of libc++" into main am: 686803d2a9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2959271

Change-Id: I238c04e3cebd8c65a001824075a7bcc6f16cb0d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-25 19:38:02 +00:00
Ryan Prichard
686803d2a9 Merge "Switch the loader to a noexcept version of libc++" into main 2024-04-25 19:18:08 +00:00
Treehugger Robot
858dbef5fa Merge "linker: use realpath instead of readlink when getting the symlink path" into main am: c5be8dfe7c am: 3e14840e94
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3049293

Change-Id: I03edbeb8efb27acfc0efe7b5852b6d9c24a75dd0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-25 17:24:26 +00:00
Treehugger Robot
3e14840e94 Merge "linker: use realpath instead of readlink when getting the symlink path" into main am: c5be8dfe7c
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3049293

Change-Id: I9199dfee9afffaac4cfad8900751c4602e9936fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-25 16:54:55 +00:00
Elliott Hughes
33de2737d9 get_executable_info: minor clarification.
Change the comment to explain _why_ we're resolving the path, get
rid of unnecessarily explicit strlen() calls, and make it clearer
that result.path is unconditionally initialized; it's just the
specific content that varies.

Change-Id: Iffbd5efc2eafd56e3efa3c0aaf7c191e6bb66a04
2024-04-25 16:44:48 +00:00
Treehugger Robot
c5be8dfe7c Merge "linker: use realpath instead of readlink when getting the symlink path" into main 2024-04-25 16:14:15 +00:00
Treehugger Robot
c663f05312 Merge "Only try to initialize appcompat properties if the folder is present" into main am: 9c7892202f am: 0771a3deaa
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3047706

Change-Id: Ia806797411761f69a1fdced226adc5668c842ab1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 22:56:42 +00:00
Treehugger Robot
0771a3deaa Merge "Only try to initialize appcompat properties if the folder is present" into main am: 9c7892202f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3047706

Change-Id: I80b3dbbc12da273352693e7d604dec5812bdf3f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 22:52:41 +00:00
Treehugger Robot
9c7892202f Merge "Only try to initialize appcompat properties if the folder is present" into main 2024-04-24 22:35:37 +00:00
Prashanth Swaminathan
d6de425f83 Merge "Revert "[RISC-V] Add misaligned load store tests"" into main am: f31e93c6e6 am: ef8c7799a3
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3058782

Change-Id: I12a816cff5c0fa1c241f968b0660f156b77d86c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 20:08:00 +00:00
Prashanth Swaminathan
ef8c7799a3 Merge "Revert "[RISC-V] Add misaligned load store tests"" into main am: f31e93c6e6
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3058782

Change-Id: I6407ae718dabe7c9fedfb86f477380beed838d07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 19:01:38 +00:00
Prashanth Swaminathan
f31e93c6e6 Merge "Revert "[RISC-V] Add misaligned load store tests"" into main 2024-04-24 18:12:54 +00:00
Prashanth Swaminathan
1cb919c07c Revert "[RISC-V] Add misaligned load store tests"
This reverts commit 4250342124.

Reason for revert: b/336800888, broke RISC-V build.

Change-Id: I8102bb0c20f80153b97853e5c988add31d4693fc
2024-04-24 16:43:44 +00:00
Aditya Kumar
f08848558d Merge "[RISC-V] Add misaligned load store tests" into main am: cf02614a4b am: f236d21542
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3047343

Change-Id: I1b28af056b70d4536dae89309b9ee617af96f3a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 15:32:37 +00:00
Aditya Kumar
f236d21542 Merge "[RISC-V] Add misaligned load store tests" into main am: cf02614a4b
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3047343

Change-Id: Ie3e087350ceecf66b620e260b1489f747b5314ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 15:18:06 +00:00
Aditya Kumar
cf02614a4b Merge "[RISC-V] Add misaligned load store tests" into main 2024-04-24 15:01:16 +00:00
AdityaK
4250342124 [RISC-V] Add misaligned load store tests
hwprobe test may be insufficient to guarantee fast (or even supported) unaligned access.

Bug: https://github.com/google/android-riscv64/issues/142
Bug: https://github.com/llvm/llvm-project/issues/88029

Change-Id: Ib673c5b752da8630296926e5ec7f59f41b686016
2024-04-23 13:17:04 -07:00
Elliott Hughes
0db3a9546a Merge "Always use __foo__ for attribute names." into main am: 5063d26249 am: c5d41a55f0
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3053202

Change-Id: Ie4cb3c253361ca6470482c573742cf77789c176d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-23 00:44:07 +00:00
Elliott Hughes
c5d41a55f0 Merge "Always use __foo__ for attribute names." into main am: 5063d26249
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3053202

Change-Id: Ib9254a28ce7853369d48567cd7ccf335ff143681
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-23 00:29:10 +00:00
Elliott Hughes
5063d26249 Merge "Always use __foo__ for attribute names." into main 2024-04-23 00:12:32 +00:00
Treehugger Robot
4404dd9cfa Merge "Replace commented-out deprecated attribute with doc comment." into main am: ae038dcdea am: f21e5164b2
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3053223

Change-Id: Iefe51bd873ad3c96e8a7b5c6e50ec318d9efbf5f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 22:55:11 +00:00
Elliott Hughes
c8310e5fb1 Merge "__system_property_set: add string names for init's error codes." into main am: 899d809bca am: 52475d9249
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3053422

Change-Id: Ib725a68d775b8e8139e96315df4684625aeafe42
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 22:55:00 +00:00
Treehugger Robot
f21e5164b2 Merge "Replace commented-out deprecated attribute with doc comment." into main am: ae038dcdea
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3053223

Change-Id: I140f88208cb45e2ad216aca831af8dbd53d99d74
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 22:39:11 +00:00
Treehugger Robot
ae038dcdea Merge "Replace commented-out deprecated attribute with doc comment." into main 2024-04-22 22:34:41 +00:00
Elliott Hughes
52475d9249 Merge "__system_property_set: add string names for init's error codes." into main am: 899d809bca
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3053422

Change-Id: I6e99edb16376c117a5b3ab49fabf2fb5a7aaa545
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 22:34:17 +00:00
Elliott Hughes
899d809bca Merge "__system_property_set: add string names for init's error codes." into main 2024-04-22 22:18:15 +00:00
Elliott Hughes
a933582f3e __system_property_set: add string names for init's error codes.
https://issuetracker.google.com/336223505 is not the first
hard-to-read bug here.

Change-Id: I520aeb2cb87423f8db394bf4709d659e3eb3a309
2024-04-22 22:18:06 +00:00
Elliott Hughes
9b9371bd0e Replace commented-out deprecated attribute with doc comment.
This attribute had been commented out since it was first
committed a decade ago. No-one's going to chase down arm32-only
trivia like that before arm32 and x86 are removed as obsolete...

Change-Id: I8e29d16657b3f4ce379e65732d747f969ea31dae
2024-04-22 20:17:22 +00:00
Elliott Hughes
a1b5ca2fe0 Always use __foo__ for attribute names.
To avoid collisions with other macros.

Change-Id: I015639043deaceccaf5f11365f8bdc45ca703da5
2024-04-22 20:10:53 +00:00
chenxinyuanchen
8d7c0f4f09 linker: use realpath instead of readlink when getting the symlink path
Fix the issue if link for an symlink that point to an relative path
cause the linker can not find the right absolute path.

For example:
lrwxr-xr-x 1 root shell 13 2009-01-01 08:00 /system/bin/app_process -> app_process64

the '/system/bin/app_process' is symlinked to 'app_process64' and will be failed.

if the 'exe_to_load' is null and also failed when stat '/proc/self/exe'
will entered this path.

Without Patch:
  [ Linking executable "app_process64" ]
  linker: CANNOT LINK EXECUTABLE "/system/bin/app_process": library "libnativeloader.so" not found: needed by main executable

With Patch:
  [ Linking executable "/system/bin/app_process64" ]
  [ Using config section "system" ]
  [ Jumping to _start (0x75593c3000)... ]

Test: Manual - Run app_process (symlinked to app_process64)

Change-Id: Iacd0a810a679e8d55d68d7e4c84f0e5e4f276b14
Signed-off-by: chenxinyuanchen <chenxinyuanchen@xiaomi.com>
Signed-off-by: chenxinyuanchen <chenxinyuanchen@xiaomi.corp-partner.google.com>
2024-04-22 06:44:29 +00:00
Elliott Hughes
28366054e3 Merge "Document pthread_key_create(3), pthread_key_delete(3), and PTHREAD_KEYS_MAX." into main am: ed21ffc70a am: 7f1b24cbbf
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3046887

Change-Id: Ifaf03a30ed6ffe00da577cfa1fea23e0e4ddc87f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-20 16:00:56 +00:00
Elliott Hughes
7f1b24cbbf Merge "Document pthread_key_create(3), pthread_key_delete(3), and PTHREAD_KEYS_MAX." into main am: ed21ffc70a
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3046887

Change-Id: I04e2c0670f3c523949c8d7de39e147ea6caf2d16
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-20 15:32:56 +00:00
Elliott Hughes
ed21ffc70a Merge "Document pthread_key_create(3), pthread_key_delete(3), and PTHREAD_KEYS_MAX." into main 2024-04-20 15:18:56 +00:00
Nate Myren
9437444cf5 Only try to initialize appcompat properties if the folder is present
If the Init process doesn't write the appcompat system properties
folder, do not attempt to initialize it

Bug: 331307495
Test: manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d071e949a6153e76eb7c67e5947d4d387a8afe2d)
Merged-In: I21716ea87e55a63a1b79127887c451d0fcf006f3
Change-Id: I21716ea87e55a63a1b79127887c451d0fcf006f3
2024-04-19 19:07:34 +00:00
Elliott Hughes
7d3c6cd25c Document pthread_key_create(3), pthread_key_delete(3), and PTHREAD_KEYS_MAX.
In particular "how to work around the PTHREAD_KEYS_MAX limit".

Change-Id: I330936d598ddddfa0903f0505fd00f8fcbf02543
2024-04-18 22:02:38 +00:00
Christopher Ferris
c374d69e7c Merge "Update to v6.8 kernel headers." into main am: 785e161dd8 am: fae7cad5e9
Original change: https://android-review.googlesource.com/c/platform/bionic/+/3020411

Change-Id: I2115375c311b21a4cd7b4829c820162dba8645a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-18 16:59:19 +00:00