Elliott Hughes
4c238d8dea
Merge "__riscv_hwprobe: don't try to set errno." into main am: 4de14c7499
am: e62a9e0329
am: d086dd0ef4
am: e888177487
am: 95c3c58d2e
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2731044
Change-Id: Ia88d2ff7a36534c56969ba62a48518c164c35dea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 20:15:29 +00:00
Elliott Hughes
95c3c58d2e
Merge "__riscv_hwprobe: don't try to set errno." into main am: 4de14c7499
am: e62a9e0329
am: d086dd0ef4
am: e888177487
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2731044
Change-Id: I06001b52d59db31a8c5abea89e1f87e508627a29
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 18:13:10 +00:00
Elliott Hughes
e888177487
Merge "__riscv_hwprobe: don't try to set errno." into main am: 4de14c7499
am: e62a9e0329
am: d086dd0ef4
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2731044
Change-Id: Ic0f92a67763fea1c6d2f100071f628747e27a712
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 17:37:47 +00:00
Elliott Hughes
d086dd0ef4
Merge "__riscv_hwprobe: don't try to set errno." into main am: 4de14c7499
am: e62a9e0329
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2731044
Change-Id: Ie20354036f9bd578b23344a5e6388ee68bfcb274
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 16:51:25 +00:00
Elliott Hughes
e62a9e0329
Merge "__riscv_hwprobe: don't try to set errno." into main am: 4de14c7499
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2731044
Change-Id: I9a73661a7e500e689285e62f57773b727d94ce5b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 16:02:53 +00:00
Elliott Hughes
4de14c7499
Merge "__riscv_hwprobe: don't try to set errno." into main
2023-08-30 14:53:29 +00:00
Elliott Hughes
92424f76cb
Merge "<termios.h>: add two new POSIX functions." into main am: b130e6dae0
am: f9189bb67d
am: 0e87776adc
am: 42fd8dbd98
am: 678e06ac31
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2729340
Change-Id: I4289276cf2977a006d1a771e8bec2a74a7902912
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 01:39:55 +00:00
Elliott Hughes
678e06ac31
Merge "<termios.h>: add two new POSIX functions." into main am: b130e6dae0
am: f9189bb67d
am: 0e87776adc
am: 42fd8dbd98
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2729340
Change-Id: I602ab8133e3460918a579cd673f2ff52ed98f2be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 00:39:35 +00:00
Elliott Hughes
42fd8dbd98
Merge "<termios.h>: add two new POSIX functions." into main am: b130e6dae0
am: f9189bb67d
am: 0e87776adc
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2729340
Change-Id: I2404cdadad8598375e5d9ee8eb3b1dc0967872f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 00:03:57 +00:00
Elliott Hughes
0e87776adc
Merge "<termios.h>: add two new POSIX functions." into main am: b130e6dae0
am: f9189bb67d
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2729340
Change-Id: I42a8041d25c29bd58ffdd91e29a3feef8ec85be4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 23:16:11 +00:00
Elliott Hughes
fce8a155df
__riscv_hwprobe: don't try to set errno.
...
When used in an ifunc resolver, errno@plt won't be available. This is
the API the rivos folks contributing to glibc are leaning towards, for
the same reason. Hit by the berberis folks because they don't implement
the syscall so they were trying to set errno to ENOSYS.
Tested by looking at the generated assembler, and also disabling the
vdso (since on actual systems, this will go via the vdso).
Test: treehugger
Change-Id: Ie2779110f141f20efe97cb892fbdefd808b5339b
2023-08-29 15:41:36 -07:00
Elliott Hughes
f9189bb67d
Merge "<termios.h>: add two new POSIX functions." into main am: b130e6dae0
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2729340
Change-Id: I8640dfffbc43c7a5c0a5b1dcd42d8b031b25eb4b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 22:25:52 +00:00
Elliott Hughes
b130e6dae0
Merge "<termios.h>: add two new POSIX functions." into main
2023-08-29 21:48:37 +00:00
Xin Li
f11fcdab19
[automerger skipped] Merge "Merge Android U (ab/10368041)" into aosp-main-future am: 5439bde949
-s ours am: ca5817fae3
-s ours am: 37dd5f86f3
-s ours am: bed7051564
-s ours
...
am skip reason: Merged-In I89679e7152f197f9d0961eee352189bc7d1d1c50 with SHA-1 75f70e7d15
is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/bionic/+/24182325
Change-Id: Iee8c69b6de62db6befb04d2e8e37b260e57e2edf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 20:42:39 +00:00
Xin Li
f43c5794ab
[automerger skipped] Merge Android U (ab/10368041) am: 661155efcb
-s ours am: b8dee64524
-s ours am: 4bc0704004
-s ours am: e2a5f0555e
-s ours
...
am skip reason: Merged-In I89679e7152f197f9d0961eee352189bc7d1d1c50 with SHA-1 75f70e7d15
is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/bionic/+/24182325
Change-Id: I91e337fb28634f90d258e7ec5db8f40ee18997d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 20:37:53 +00:00
Elliott Hughes
647472db9b
<termios.h>: add two new POSIX functions.
...
musl already added tcgetwinsize() and tcsetwinsize(), but I didn't
notice.
Trivial single-line inlines added to a header that's already written
that way.
Test: treehugger
Change-Id: Iac95ea6a89f3872025c512f7e61987b81d0aafa7
2023-08-29 09:33:04 -07:00
Xin Li
bed7051564
[automerger skipped] Merge "Merge Android U (ab/10368041)" into aosp-main-future am: 5439bde949
-s ours am: ca5817fae3
-s ours am: 37dd5f86f3
-s ours
...
am skip reason: Merged-In I89679e7152f197f9d0961eee352189bc7d1d1c50 with SHA-1 75f70e7d15
is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/bionic/+/24182325
Change-Id: Iccf68a2130bed7742b103aac1dba20d7ee58b966
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 01:15:37 +00:00
Xin Li
e2a5f0555e
[automerger skipped] Merge Android U (ab/10368041) am: 661155efcb
-s ours am: b8dee64524
-s ours am: 4bc0704004
-s ours
...
am skip reason: Merged-In I89679e7152f197f9d0961eee352189bc7d1d1c50 with SHA-1 75f70e7d15
is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/bionic/+/24182325
Change-Id: I2e35fcd870182d2c0d2014c5147cb7cc8469ad2c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 01:10:47 +00:00
Xin Li
37dd5f86f3
[automerger skipped] Merge "Merge Android U (ab/10368041)" into aosp-main-future am: 5439bde949
-s ours am: ca5817fae3
-s ours
...
am skip reason: Merged-In I89679e7152f197f9d0961eee352189bc7d1d1c50 with SHA-1 75f70e7d15
is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/bionic/+/24182325
Change-Id: I7dfec00742496ffe3efe3ba8c0791cbd0089381a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 00:39:50 +00:00
Xin Li
4bc0704004
[automerger skipped] Merge Android U (ab/10368041) am: 661155efcb
-s ours am: b8dee64524
-s ours
...
am skip reason: Merged-In I89679e7152f197f9d0961eee352189bc7d1d1c50 with SHA-1 75f70e7d15
is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/bionic/+/24182325
Change-Id: I945e943ce7c5d64c6800ff46c16e5ac286a5587a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 00:35:03 +00:00
Xin Li
ca5817fae3
[automerger skipped] Merge "Merge Android U (ab/10368041)" into aosp-main-future am: 5439bde949
-s ours
...
am skip reason: Merged-In I89679e7152f197f9d0961eee352189bc7d1d1c50 with SHA-1 75f70e7d15
is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/bionic/+/24182325
Change-Id: I21731c510d0180f02969daa153f5efd5ab1594c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 00:03:50 +00:00
Xin Li
b8dee64524
[automerger skipped] Merge Android U (ab/10368041) am: 661155efcb
-s ours
...
am skip reason: Merged-In I89679e7152f197f9d0961eee352189bc7d1d1c50 with SHA-1 75f70e7d15
is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/bionic/+/24182325
Change-Id: Idbaa4b7c9b230ba313b6a097c9e5b0891436a262
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 23:59:03 +00:00
Kalesh Singh
76155aa820
Merge "bionic: CFIShadow: Remove use of PAGE_SIZE macro." into main am: 97a0587f20
am: fcf5ee6e76
am: d5c5aaa9ad
am: 26cf06c63b
am: 12961dd32e
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2717359
Change-Id: If4948beadebac89807d43d4956bb2274c7505ef5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 23:40:49 +00:00
Kalesh Singh
12961dd32e
Merge "bionic: CFIShadow: Remove use of PAGE_SIZE macro." into main am: 97a0587f20
am: fcf5ee6e76
am: d5c5aaa9ad
am: 26cf06c63b
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2717359
Change-Id: I22ff5c4c54bc46955ab4c2f0105673bee10f88d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 22:46:06 +00:00
Kalesh Singh
26cf06c63b
Merge "bionic: CFIShadow: Remove use of PAGE_SIZE macro." into main am: 97a0587f20
am: fcf5ee6e76
am: d5c5aaa9ad
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2717359
Change-Id: Id6847b6a78f4660c581fcf66a78e7360bbba5156
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 22:15:37 +00:00
Xin Li
5439bde949
Merge "Merge Android U (ab/10368041)" into aosp-main-future
2023-08-28 22:13:38 +00:00
Kalesh Singh
d5c5aaa9ad
Merge "bionic: CFIShadow: Remove use of PAGE_SIZE macro." into main am: 97a0587f20
am: fcf5ee6e76
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2717359
Change-Id: Iadb56131b16ce9423f3227593c7d2b3985eac0c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 21:31:50 +00:00
Kalesh Singh
9d01eee049
Merge "bionic: libdl_cfi: Remove PAGE_SIZE usage" into main am: de83440636
am: 256e2a786a
am: 47f06117f3
am: 2707ee9332
am: eb40a32cf9
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2727078
Change-Id: I2164feae95766b42620baa2a2ec5770e65be02fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 20:52:43 +00:00
Kalesh Singh
fcf5ee6e76
Merge "bionic: CFIShadow: Remove use of PAGE_SIZE macro." into main am: 97a0587f20
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2717359
Change-Id: I3d25584b705b3b37cbce844af4a17f5bfaf1b8a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 20:47:13 +00:00
Kalesh Singh
97a0587f20
Merge "bionic: CFIShadow: Remove use of PAGE_SIZE macro." into main
2023-08-28 20:04:57 +00:00
Kalesh Singh
eb40a32cf9
Merge "bionic: libdl_cfi: Remove PAGE_SIZE usage" into main am: de83440636
am: 256e2a786a
am: 47f06117f3
am: 2707ee9332
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2727078
Change-Id: I734aec0280c5ff85b0a3c9150267e97c3ef2a45e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 19:56:31 +00:00
Kalesh Singh
2707ee9332
Merge "bionic: libdl_cfi: Remove PAGE_SIZE usage" into main am: de83440636
am: 256e2a786a
am: 47f06117f3
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2727078
Change-Id: I4101d45e2ba6528e4069df239fd8b0c723782779
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 19:19:34 +00:00
Kalesh Singh
47f06117f3
Merge "bionic: libdl_cfi: Remove PAGE_SIZE usage" into main am: de83440636
am: 256e2a786a
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2727078
Change-Id: I8e93227fc44a0b52195dfb55b5e95697490e9fd2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 18:38:54 +00:00
Elliott Hughes
7dae3812d7
Merge "sysconf(): implement cache queries." into main am: a71a15fe34
am: 3996bbe901
am: a9ca959498
am: 3e268603ec
am: 6a12624063
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2721536
Change-Id: I115e6e6175972cf111078edad7ed67ed8de76df3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 17:54:43 +00:00
Kalesh Singh
256e2a786a
Merge "bionic: libdl_cfi: Remove PAGE_SIZE usage" into main am: de83440636
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2727078
Change-Id: I1f5bcab12da4efbb7fd3cab2b53a457cc683cbb8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 17:54:03 +00:00
Kalesh Singh
de83440636
Merge "bionic: libdl_cfi: Remove PAGE_SIZE usage" into main
2023-08-28 17:13:01 +00:00
Elliott Hughes
6a12624063
Merge "sysconf(): implement cache queries." into main am: a71a15fe34
am: 3996bbe901
am: a9ca959498
am: 3e268603ec
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2721536
Change-Id: I72dde4beac09bd5c563a16f49c4004e33ecf29c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 17:03:07 +00:00
Elliott Hughes
3e268603ec
Merge "sysconf(): implement cache queries." into main am: a71a15fe34
am: 3996bbe901
am: a9ca959498
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2721536
Change-Id: I9c26aaff7285dcb1bde407ffc6638f949378045d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 16:32:11 +00:00
Elliott Hughes
a9ca959498
Merge "sysconf(): implement cache queries." into main am: a71a15fe34
am: 3996bbe901
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2721536
Change-Id: I42a469ff24cd418c0825a33b1345ebafd3dda04f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 15:50:33 +00:00
Elliott Hughes
3996bbe901
Merge "sysconf(): implement cache queries." into main am: a71a15fe34
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2721536
Change-Id: Ied0b13efd8a25f1b185226d3ff430d93b4fac31a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 15:05:59 +00:00
Elliott Hughes
a71a15fe34
Merge "sysconf(): implement cache queries." into main
2023-08-28 14:48:20 +00:00
Elliott Hughes
02df7388f1
sysconf(): implement cache queries.
...
This is a bit disappointing. I'd not implemented this in the past
because it wasn't available on all platforms, and -- although the
riscv64 implementation was just a cool optimization -- I thought that
the /sys stuff was actually portable, until I ran it on arm64 hardware.
So here we have getauxval() for riscv64, /sys for x86-64, and our best
guess based on ctr_el0 for arm64.
Bug: http://b/294034962
Test: ran tests on the host, an arm64 device, and riscv64 host and qemu
Change-Id: I420b69b976d30668d4d2ac548c4229e2a4eafb20
2023-08-28 14:48:12 +00:00
Kalesh Singh
461c64db9e
bionic: libdl_cfi: Remove PAGE_SIZE usage
...
Use max_page_size() for build time variable alignments instead
of PAGE_SIZE.
In the 4k targets there is no functional difference since
max_page_size() == page_size() == 4096.
On a 16kb device max_page_size() == 65536 and page_size() == 16384.
However, aligning up does not incur any memory regressions
since the .bss/.data sections are still be backed in PAGE_SIZE'ed
chunks. See: go/16k-page-aligned-variables
Bug: 296275298
Test: mma
Change-Id: Ic944235d8a5742a51a8fb0f2a0b75e532f404110
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
2023-08-24 23:36:33 -07:00
Elliott Hughes
faa747b38c
Merge "Add %b/%B to async-safe logging." into main am: bf4d3a95c1
am: 5abfd88813
am: 925b5f482f
am: a5da931b29
am: d30174967c
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2721534
Change-Id: Ib294ee85f065bb4b6d747d50d9bce1b31fb5f58f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-24 18:03:56 +00:00
Elliott Hughes
d30174967c
Merge "Add %b/%B to async-safe logging." into main am: bf4d3a95c1
am: 5abfd88813
am: 925b5f482f
am: a5da931b29
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2721534
Change-Id: I6807bf2de49f25565a8de6ec773e332359eaf4a4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-24 17:15:16 +00:00
Elliott Hughes
a5da931b29
Merge "Add %b/%B to async-safe logging." into main am: bf4d3a95c1
am: 5abfd88813
am: 925b5f482f
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2721534
Change-Id: Id858d62be13f6339b2249c526f5c1b311913a031
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-24 16:46:20 +00:00
Elliott Hughes
925b5f482f
Merge "Add %b/%B to async-safe logging." into main am: bf4d3a95c1
am: 5abfd88813
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2721534
Change-Id: I089499ab936e4b46603b0364e9188ad94121458d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-24 16:07:56 +00:00
Elliott Hughes
5abfd88813
Merge "Add %b/%B to async-safe logging." into main am: bf4d3a95c1
...
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2721534
Change-Id: I2c8f318874f9c2fc674041a10d36f7082f9a5d43
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-24 15:26:08 +00:00
Elliott Hughes
bf4d3a95c1
Merge "Add %b/%B to async-safe logging." into main
2023-08-24 14:34:45 +00:00
Xin Li
661155efcb
Merge Android U (ab/10368041)
...
Bug: 291102124
Merged-In: I89679e7152f197f9d0961eee352189bc7d1d1c50
Change-Id: I02dd1d48d478b0e0d702f1653271437e2cf7cef7
2023-08-23 14:43:14 -07:00