summaryrefslogtreecommitdiff
path: root/build/art.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2022-07-14 18:09:41 -0700
committer Elliott Hughes <enh@google.com> 2022-10-31 15:20:41 +0000
commitebc548c64cb78d9878cb0bff00608aedf016c38f (patch)
tree7da7014a1bae8a5f7061440b8366e68d72ddab83 /build/art.go
parent99835538abb76c96087a4fa4ab76a0bb9f54bb94 (diff)
Add minimal riscv64 elf support to allow create_minidebuginfo on riscv64 binaries
This adds support for riscv64 elf files so that create_minidebuginfo can be used strip riscv64 binaries. Test: m create_minidebuginfo Change-Id: I0cb0348d46ffb216af2f5c61701406504fae3b22
Diffstat (limited to 'build/art.go')
-rw-r--r--build/art.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/art.go b/build/art.go
index 7b06353ca1..970af8ab75 100644
--- a/build/art.go
+++ b/build/art.go
@@ -95,12 +95,14 @@ func globalFlags(ctx android.LoadHookContext) ([]string, []string) {
cflags = append(cflags,
"-DART_STACK_OVERFLOW_GAP_arm=16384",
"-DART_STACK_OVERFLOW_GAP_arm64=16384",
+ "-DART_STACK_OVERFLOW_GAP_riscv64=16384",
"-DART_STACK_OVERFLOW_GAP_x86=16384",
"-DART_STACK_OVERFLOW_GAP_x86_64=20480")
} else {
cflags = append(cflags,
"-DART_STACK_OVERFLOW_GAP_arm=8192",
"-DART_STACK_OVERFLOW_GAP_arm64=8192",
+ "-DART_STACK_OVERFLOW_GAP_riscv64=8192",
"-DART_STACK_OVERFLOW_GAP_x86=8192",
"-DART_STACK_OVERFLOW_GAP_x86_64=8192")
}