Details
Details
- Reviewers
kib emaste andrew - Commits
- rS292691: Add support for RISC-V architecture.
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
| libexec/rtld-elf/riscv/rtld_machdep.h | ||
|---|---|---|
| 50–55 | Can you implement this as #define rtld_dynamic(obj) (&_DYNAMIC)? It's special on arm64 because otherwise the _DYNAMIC symbol needs to be relocated. | |
| libexec/rtld-elf/riscv/rtld_start.S | ||
| 68 | Why 72? | |
| 77 | Why are you saving this? | |
| 80–89 | These are wrong, the offset will trample over the a registers above. | |
| libexec/rtld-elf/riscv/rtld_start.S | ||
|---|---|---|
| 77 | BTW, I just looked to Linux port, they do also saving ra. | |
| libexec/rtld-elf/riscv/rtld_machdep.h | ||
|---|---|---|
| 50–55 | I suspect for similar reasons (I was just making sure it wasn't just because that's how arm64 does it). | |
| libexec/rtld-elf/riscv/rtld_start.S | ||
| 68 | I normally write it as addi sp, sp, -(8 * 9) to make it obvious we are saving space for 9 8-byte registers. | |
| 81 | Why not move this to the above addi? It should just cost the stack space if it's not used. | |