Issue 131705
Summary CREL relocation table contains addends even for RELA-type psABIs
Labels new issue
Assignees MaskRay
Reporter rui314
    It looks like CREL relocation tables contain addends even for ARM32 and i386. This deviates from their psABIs, where addends are typically stored at relocated places.

For RELA-type psABIs, can LLVM store addends at relocated places instead of in CREL tables?

I see two reasons for doing so:

1. It aligns more closely with the baseline psABI and simplifies support for other tools that expect addends to be at relocated places rather than in the relocation table. This is our motivation (https://github.com/rui314/mold/issues/1430).
2. Since CREL was designed to save disk space, storing addends in CREL isn't ideal. Eliminating addends can save one byte per relocation.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to