-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add RELR support #440
Comments
Do we need to say anything? It's all in the gABI, I don't think there's anything unspecified for the psABI. |
While I'm not as familiar with other RISC-V repositories for recommended ABI practices, I understand the intent of this PR seems to be promoting good habits. I agree replicating the existing specification of RELR is unnecessary. We don't even need to mention it. |
IMO at least we may mention something like what AArch64 ABI do: allow mixture the relocation format within single binary but disallow use more than one type for an address.
https://github.com/ARM-software/abi-aa/blob/main/aaelf64/aaelf64.rst#addends-and-pc-bias |
I don't know too much on the gABI standardized flow, what's the status about the RELR, and ... I know there is mailing list and latest (?) draft https://www.sco.com/developers/gabi/latest/contents.html, does here some git repo for latest status? and what's the formal flow for that? My intention is having some more formal reference if possible :P |
Many linkers don't support both REL and RELA for a single architecture, so I don't think we want to allow that too casually. In addition to that, it's not really needed to support RELR and kind of off-topic, I think? |
There is unfortunately no git repo. While some constants (e.g.
Thanks:) The Executable and Linking Format was originally developed and published by UNIX System Laboratories (USL) as part of the Application Binary Interface (ABI).
The committee appeared to be dismissed. On www.sco.com, they claim that its a SCO copyright. In 2011, the SCO group's Unix software assets were sold off to UnXis, which renamed to Xinuos in 2013. The last update of https://www.sco.com/developers/gabi/latest/contents.html was (I am going to add the following to my next blog post, as I think many folks want to know the role of the generic-abi group and the status.) A neutral Google Group not affliated with Xinuous exists for discussing the generic ABI. However, this low activity is not a major concern, as worthy changes to the object file format that would benefit many ELF operating systems are rare. In April 2020, Cary Coutant reached a preliminary agreement with Xinuos. |
RELR is a new relocation format to compress the R_RISCV_RELATIVE relocation, which can save lots size for the shared libraries.
The text was updated successfully, but these errors were encountered: