Commit a0940624 by Enrico Granata Committed by Antonio Maiorano

Fix a linker problem with ARM/thumb compatibility

Trying to build trout_arm64 on git_master results in linker errors due to certain library symbols not supporting branch and link relocation Apply the fix used elsewhere in the codebase (e.g. ag/12429028) to overcome this issue Bug: b/155835175 Test: build trout_arm64-userdebug Change-Id: Ib83fae561f50dbe3080bd3018690844efebe67df Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/48648 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarAntonio Maiorano <amaiorano@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com>
parent 6aadd31a
...@@ -34,7 +34,10 @@ cc_library_static { ...@@ -34,7 +34,10 @@ cc_library_static {
"external/swiftshader/third_party/marl/include" "external/swiftshader/third_party/marl/include"
], ],
arch: { arch: {
arm: { srcs: ["src/osfiber_arm.c", "src/osfiber_asm_arm.S"], }, arm: {
instruction_set: "arm",
srcs: ["src/osfiber_arm.c", "src/osfiber_asm_arm.S"],
},
arm64: { srcs: ["src/osfiber_aarch64.c", "src/osfiber_asm_aarch64.S"], }, arm64: { srcs: ["src/osfiber_aarch64.c", "src/osfiber_asm_aarch64.S"], },
x86: { srcs: ["src/osfiber_x86.c", "src/osfiber_asm_x86.S"], }, x86: { srcs: ["src/osfiber_x86.c", "src/osfiber_asm_x86.S"], },
x86_64: { srcs: ["src/osfiber_x64.c", "src/osfiber_asm_x64.S"], }, x86_64: { srcs: ["src/osfiber_x64.c", "src/osfiber_asm_x64.S"], },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment