-
Notifications
You must be signed in to change notification settings - Fork 56
Add relaxation relocations #77
base: main
Are you sure you want to change the base?
Conversation
binutils patch series: https://sourceware.org/pipermail/binutils/2022-December/124900.html Seems it's for relaxing |
I am on a trip until Dec 15 and will have some backlog to process... Nevertheless, here are some early thoughts:
This description is insufficient. It should specify which bits are modified. |
Thank you very much, please take your time to relax (pun intended)! We definitely need to learn from RISC-V's lessons so we might be able to do better this time.
Somewhat agreed. The relaxation model is again largely based on that of RISC-V but there's no
It seems to be something parallel to |
I meant "This description is insufficient." Just updated the comment to be clearer. Having add/sub relocation types is fine. The assembler behavior should be specified somewhere (hence the riscv-non-isa/riscv-asm-manual#80 link). The RISC-V documentation unfortunately doesn't make it clear and GNU as /LLVM MC behaviors are somewhat sub-par. |
I don't understand linking process (especially relaxation) very well but I think Fangrui is an expert. From the downstream perspective, I'd like to perform a full system rebuild with the Binutils relaxation patch, but I'm in a very bad mood now and my productivity will be likely very low. One obvious question: RISC-V is disabling relaxation for their kernel. Will we need to do the same thing? cc @chenhuacai |
No description provided.