Commit graph

37890 commits

Author SHA1 Message Date
Colin Cross
91529b75cf Add REG_S0 to ucontext.h for riscv64
REG_S0 is needed by Clang's sanitizer runtimes:
https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp#L2218

Test: clang build
Change-Id: Id9a82e977dcbdddf5505495b59057cf4564c9e35
2022-10-13 13:27:18 -07:00
Treehugger Robot
0c4c19e842 Merge "Build libdl for risc-v." am: 8f548122ad
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2249439

Change-Id: I5518d1b1e432229bc0f283743f629b6585304d47
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 03:50:20 +00:00
Treehugger Robot
8f548122ad Merge "Build libdl for risc-v." 2022-10-12 03:14:04 +00:00
Elliott Hughes
a9c270f39d Merge "riscv64 TLS support." am: c5e588ad37
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2246833

Change-Id: I060f646755b91b35512c8734b184757a833147f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 01:06:02 +00:00
Elliott Hughes
c5e588ad37 Merge "riscv64 TLS support." 2022-10-12 00:35:37 +00:00
Elliott Hughes
ed70c17deb Build libdl for risc-v.
An easy one to start with, since there's nothing really in it :-)

Signed-off-by: Mao Han <han_mao@linux.alibaba.com>
Signed-off-by: Xia Lifang <lifang_xia@linux.alibaba.com>
Signed-off-by: Chen Guoyin <chenguoyin.cgy@linux.alibaba.com>
Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
Signed-off-by: Lu Xufan <luxufan@iscas.ac.cn>
Test: built manually
Change-Id: I16028a6f959d0ce43b9c9d5d90db681479505a3e
2022-10-11 19:01:30 +00:00
Treehugger Robot
1e69615e0b Merge "riscv64: add "private/bionic_asm.h"." am: 6987120b30
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2247578

Change-Id: I32c552185b7532d1b2857fa31d6d2135eb24bb21
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 02:52:19 +00:00
Treehugger Robot
29f8e82ed6 Merge "riscv64: more <sys/ucontext.h>." am: d5b5adfa87
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2247933

Change-Id: Ic453f8ab6956d5d4631e852079c14886eafc03eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 02:52:09 +00:00
Treehugger Robot
6987120b30 Merge "riscv64: add "private/bionic_asm.h"." 2022-10-11 02:33:11 +00:00
Treehugger Robot
d5b5adfa87 Merge "riscv64: more <sys/ucontext.h>." 2022-10-11 02:15:10 +00:00
Jingwen Chen
63bb54b890 Merge "Use allowlists.go for all bp2build config and remove Android.bp prop." am: 7f50756d59
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2245514

Change-Id: I74d840ec37212104394dd2800225a09b29163ffc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 01:09:27 +00:00
Jingwen Chen
7f50756d59 Merge "Use allowlists.go for all bp2build config and remove Android.bp prop." 2022-10-11 00:36:44 +00:00
Elliott Hughes
add0c48a4b riscv64: add "private/bionic_asm.h".
Signed-off-by: Mao Han <han_mao@linux.alibaba.com>
Signed-off-by: Xia Lifang <lifang_xia@linux.alibaba.com>
Signed-off-by: Chen Guoyin <chenguoyin.cgy@linux.alibaba.com>
Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
Signed-off-by: Lu Xufan <luxufan@iscas.ac.cn>
Test: treehugger
Change-Id: Iaa7d5584dfd0ec6f0cf6d3d43ae6bdf2261b12f8
2022-10-11 00:04:34 +00:00
Elliott Hughes
287f48e6e5 riscv64: more <sys/ucontext.h>.
Actually, we don't want to reuse the kernel struct ucontext because its
uc_mcontext has the wrong type, which means the fields within that end
up with the wrong names. Add the call site that made that evident, and
update <sys/ucontext.h> appropriately.

Signed-off-by: Mao Han <han_mao@linux.alibaba.com>
Signed-off-by: Xia Lifang <lifang_xia@linux.alibaba.com>
Signed-off-by: Chen Guoyin <chenguoyin.cgy@linux.alibaba.com>
Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
Signed-off-by: Lu Xufan <luxufan@iscas.ac.cn>
Test: treehugger
Change-Id: If1d079afef0d5953aa22d9b0e049cfb0119c7718
2022-10-11 00:01:35 +00:00
Treehugger Robot
e1b248beea Merge "Add riscv64 <ucontext.h>." am: ea988f43d8
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2246733

Change-Id: Ib9bb1993a70ff737859d35ef056cb569206293b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-10 22:56:01 +00:00
Treehugger Robot
ea988f43d8 Merge "Add riscv64 <ucontext.h>." 2022-10-10 22:33:10 +00:00
Elliott Hughes
43462707a1 riscv64 TLS support.
Signed-off-by: Mao Han <han_mao@linux.alibaba.com>
Signed-off-by: Xia Lifang <lifang_xia@linux.alibaba.com>
Signed-off-by: Chen Guoyin <chenguoyin.cgy@linux.alibaba.com>
Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
Signed-off-by: Lu Xufan <luxufan@iscas.ac.cn>
Test: treehugger
Change-Id: I14efb4a03a3dc2ec736d7e47a3f8859c886eb9d6
2022-10-10 20:30:24 +00:00
Elliott Hughes
4043e5ea96 Add riscv64 <ucontext.h>.
Signed-off-by: Mao Han <han_mao@linux.alibaba.com>
Signed-off-by: Xia Lifang <lifang_xia@linux.alibaba.com>
Signed-off-by: Chen Guoyin <chenguoyin.cgy@linux.alibaba.com>
Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
Signed-off-by: Lu Xufan <luxufan@iscas.ac.cn>
Test: treehugger
Change-Id: Ieb7cb71cd735b6629d507efb0a5e35ee653e4d20
2022-10-10 20:15:51 +00:00
Elliott Hughes
c252c44b1a Merge "riscv64 <sys/user.h>." am: 5b2552a030
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2243974

Change-Id: Id8d8ddcccd7e20470c3ecd43c9a3c3ed74737b1e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-10 17:09:47 +00:00
Elliott Hughes
5b2552a030 Merge "riscv64 <sys/user.h>." 2022-10-10 16:36:10 +00:00
Jingwen Chen
95ca177c58 Use allowlists.go for all bp2build config and remove Android.bp prop.
This was introduced when we didn't have allowlists.

Bug: 251197532
Test: presubmits
Change-Id: I83713dd9a0a059acda8e4565677d0c8c6b966749
2022-10-10 14:35:15 +00:00
Elliott Hughes
efd6daf26c Merge "riscv64 <fenv.h>." am: c6bddf4516
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2243973

Change-Id: Ia0ed38756ed570eab55647aebc265f14d626a8ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-08 03:36:19 +00:00
Elliott Hughes
1d50c44f7e Merge "riscv64 __get_tls()." am: e0b9474854
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2243976

Change-Id: I8dd2c4e522060992fc0f48eac5ec3e6684c8b4fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-08 03:36:07 +00:00
Elliott Hughes
c6bddf4516 Merge "riscv64 <fenv.h>." 2022-10-08 03:03:13 +00:00
Elliott Hughes
e0b9474854 Merge "riscv64 __get_tls()." 2022-10-08 03:02:56 +00:00
Treehugger Robot
ca89fdddf7 Merge "riscv64 BIONIC_STOP_UNWIND." am: 002b57c00e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2243977

Change-Id: Iddac964c1fec24527e62b7c06f607df749ef461b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 23:35:59 +00:00
Treehugger Robot
002b57c00e Merge "riscv64 BIONIC_STOP_UNWIND." 2022-10-07 23:15:25 +00:00
Treehugger Robot
4c92f5f8d9 Merge "Pull in the riscv64 uapi headers for riscv64 builds." am: 775112ab88
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2241712

Change-Id: Ic82d62c49f37de34b627bdaa1dd124a662ad6477
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 22:51:01 +00:00
Treehugger Robot
775112ab88 Merge "Pull in the riscv64 uapi headers for riscv64 builds." 2022-10-07 22:26:49 +00:00
Elliott Hughes
fc009dd8a7 riscv64 __get_tls().
Signed-off-by: Mao Han <han_mao@linux.alibaba.com>
Signed-off-by: Xia Lifang <lifang_xia@linux.alibaba.com>
Signed-off-by: Chen Guoyin <chenguoyin.cgy@linux.alibaba.com>
Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
Signed-off-by: Lu Xufan <luxufan@iscas.ac.cn>
Test: treehugger
Change-Id: Ie7616cef6d394ba457c30c58d15f696c9b6d3853
2022-10-07 21:33:57 +00:00
Elliott Hughes
203b0b7346 riscv64 BIONIC_STOP_UNWIND.
Signed-off-by: Mao Han <han_mao@linux.alibaba.com>
Signed-off-by: Xia Lifang <lifang_xia@linux.alibaba.com>
Signed-off-by: Chen Guoyin <chenguoyin.cgy@linux.alibaba.com>
Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
Signed-off-by: Lu Xufan <luxufan@iscas.ac.cn>
Test: treehugger
Change-Id: I1b6723e9fb60de8f98a716ef388ec81a41df02d3
2022-10-07 21:33:08 +00:00
Elliott Hughes
4c6d66c472 riscv64 <fenv.h>.
Just the interface for now; implementation to come later.

Test: treehugger
Change-Id: Id1f0b158f708ff501b5e13fe92c6736e4507d7b6
2022-10-07 21:15:26 +00:00
Elliott Hughes
cf123811b7 riscv64 <sys/user.h>.
Empty, at least for now. The other libcs seem not to have invented types
here, so let's see whether there's really a call for them before we do.

Test: treehugger
Change-Id: Icbace2c02abc011388edc8e3e238bb64c640feb7
2022-10-07 20:49:07 +00:00
Elliott Hughes
48e5333dd0 Pull in the riscv64 uapi headers for riscv64 builds.
Test: treehugger
Change-Id: I0c41a1a5b9805057609c68a49f67e6e24d4a0572
2022-10-07 20:39:25 +00:00
Treehugger Robot
ed0c753c73 Merge changes from topic "riscv64-elf" am: 771eacc470
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2242837

Change-Id: Ifc95c9d09ac1b9bee53807ff9880fef97bca41c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 17:02:40 +00:00
Treehugger Robot
771eacc470 Merge changes from topic "riscv64-elf"
* changes:
  Switch to FreeBSD's elf_common.h.
  Kernel header scrubber: remove unused map entries.
2022-10-07 16:26:44 +00:00
Elliott Hughes
0f19b10b5d Switch to FreeBSD's elf_common.h.
In particular, it contains all the riscv64 definitions we need, and lets
us clear up a lot of our existing ELF headers.

The other two BSDs seem to have errors and/or gaps in their riscv64
constants.

Test: treehugger
Change-Id: I92e48ef56c52c271ff6ed341b82169aa91f11d98
2022-10-07 00:04:44 +00:00
Xin Li
5e936b9628 Merge "Mark tm-qpr-dev-plus-aosp-without-vendor@9129937 as merged" into stage-aosp-master 2022-10-06 21:40:37 +00:00
Xin Li
544bbcc9d2 Mark tm-qpr-dev-plus-aosp-without-vendor@9129937 as merged
Ignore-AOSP-First: empty marker merge
Change-Id: Ia176d3a26a7fdd6d89d615a64429abe5bf0c70a2
2022-10-06 14:03:36 -07:00
Treehugger Robot
0daa15798d Merge "Add __tls_get_addr for riscv64." am: 4091afb2cd
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2241897

Change-Id: Id32401253736fec1c395c404d80b7a83e87f5c9a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-06 20:41:24 +00:00
Elliott Hughes
bba6ddff12 Kernel header scrubber: remove unused map entries.
I was going to add riscv64 and define __riscv_xlen to 64 here, but our
"preprocessor" in python can't simpify `MACRO_NAME == 123` expressions
anyway. Rather than add another empty map, remove the other unused maps
and explain why this functionality is still useful as long as the legacy
32-bit ABIs are still with us.

Test: treehugger
Change-Id: I553059942920e7d323a0ca8a6fd5f39bc2d35063
2022-10-06 20:40:44 +00:00
Treehugger Robot
4091afb2cd Merge "Add __tls_get_addr for riscv64." 2022-10-06 20:07:48 +00:00
Elliott Hughes
76be72dde4 Add __tls_get_addr for riscv64.
We added this symbol somewhat inconsistently, with arm and x86-64 in one
release and arm64 in another. It doesn't really matter where we add
riscv64 (since there was no riscv64 at either of these now-historical
API levels), so arbitrarily go with the majority.

Signed-off-by: Mao Han <han_mao@linux.alibaba.com>
Signed-off-by: Xia Lifang <lifang_xia@linux.alibaba.com>
Signed-off-by: Chen Guoyin <chenguoyin.cgy@linux.alibaba.com>
Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
Signed-off-by: Lu Xufan <luxufan@iscas.ac.cn>
Test: treehugger
Change-Id: I1ef1e0ebdbece728aaef52c08ee57cca1197cb95
2022-10-06 15:18:35 +00:00
Elliott Hughes
34f860b97e Merge "riscv64's struct stat is the same as arm64's." am: 5394de7b05
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2242573

Change-Id: Ia1d04c7823a82725b8132144b5590395b07173e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-06 15:07:37 +00:00
Elliott Hughes
5394de7b05 Merge "riscv64's struct stat is the same as arm64's." 2022-10-06 14:41:03 +00:00
Automerger Merge Worker
b5f14656eb Merge "Merge "Merge "Merge "stack_protector_DeathTest#modify_stack_protector: avoid flake." into android12-tests-dev am: 793d1fb5ab" into android12L-tests-dev am: 6aa3bdfb16" into android13-tests-dev am: 159a0e884f" am: aafcd987ff
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2240186

Change-Id: I703b56cbb2c37385d516a97a1b24f41707e1f6d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-06 01:52:21 +00:00
Automerger Merge Worker
aafcd987ff Merge "Merge "Merge "Merge "stack_protector_DeathTest#modify_stack_protector: avoid flake." into android12-tests-dev am: 793d1fb5ab" into android12L-tests-dev am: 6aa3bdfb16" into android13-tests-dev am: 159a0e884f" 2022-10-06 00:55:42 +00:00
Automerger Merge Worker
cdcaa48f5f Merge "Merge "Merge "stack_protector_DeathTest#modify_stack_protector: avoid flake." into android12-tests-dev am: 793d1fb5ab" into android12L-tests-dev am: 6aa3bdfb16" into android13-tests-dev am: 159a0e884f
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2240186

Change-Id: Ic292216ca46c7488ad53104b531e47232e58a7cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-06 00:55:39 +00:00
Elliott Hughes
5cc8a46419 riscv64's struct stat is the same as arm64's.
(And all other new architectures.)

Signed-off-by: Mao Han <han_mao@linux.alibaba.com>
Signed-off-by: Xia Lifang <lifang_xia@linux.alibaba.com>
Signed-off-by: Chen Guoyin <chenguoyin.cgy@linux.alibaba.com>
Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
Signed-off-by: Lu Xufan <luxufan@iscas.ac.cn>
Test: treehugger
Change-Id: Iceb2dd16c738302624980179788c4a2e68b797ed
2022-10-06 00:26:18 +00:00
Automerger Merge Worker
159a0e884f Merge "Merge "Merge "stack_protector_DeathTest#modify_stack_protector: avoid flake." into android12-tests-dev am: 793d1fb5ab" into android12L-tests-dev am: 6aa3bdfb16" into android13-tests-dev 2022-10-06 00:22:49 +00:00