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 | ||
---|---|---|
49–54 | 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 | ||
67 | Why 72? | |
76 | Why are you saving this? | |
79–88 | These are wrong, the offset will trample over the a registers above. |
libexec/rtld-elf/riscv/rtld_start.S | ||
---|---|---|
78 | BTW, I just looked to Linux port, they do also saving ra. |
libexec/rtld-elf/riscv/rtld_machdep.h | ||
---|---|---|
51–56 | 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 | ||
69 | I normally write it as addi sp, sp, -(8 * 9) to make it obvious we are saving space for 9 8-byte registers. | |
82 | Why not move this to the above addi? It should just cost the stack space if it's not used. |