commit | 7acdef2a9bee623dd8946a55342b14aee4873842 | [log] [tgz] |
---|---|---|
author | Roland McGrath <mcgrathr@google.com> | Tue Nov 12 22:06:29 2024 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Nov 12 22:06:29 2024 +0000 |
tree | c8b68703e1a03d77226898245808779463c61750 | |
parent | 89912e2b8adb786a59a67b16693ec16afbce17c2 [diff] |
[kernel][riscv64] Avoid generating .got in start.S code This cleans up the start.S code to be a little tighter in its reuse of computations in registers. For the one place this code relies on loading a relocated value, it now uses an explicit RELRO data word instead of letting the assembler / linker generate an implicit .got entry with the same relocation. This makes it easier to rule out .got in the ELF kernel image, since all other instances would be undesired compiler-generated cases or other accidental uses in assembly (e.g. `la` used vs `lla`). Change-Id: I632f80c5eddd7dca7e0f2ad1434badd7c3c54dd8 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1154012 Reviewed-by: Travis Geiselbrecht <travisg@google.com> Fuchsia-Auto-Submit: Roland McGrath <mcgrathr@google.com> Reviewed-by: Joshua Seaton <joshuaseaton@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.