[PATCH] D144617: [AVR][MC] Add ELF flag 'EF_AVR_LINKRELAX_PREPARED' to OBJ files
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 23 15:13:37 PST 2023
benshi001 added a comment.
In D144617#4148171 <https://reviews.llvm.org/D144617#4148171>, @MaskRay wrote:
> I think we should understand what this flag does and how it affects assemblers/linkers.
> If it does not cause behavior difference, I am unsure we should add it.
This flag does cause difference behavior of gnu ld. With this flag added and `--relax` specified to gnu-ld, the gnu-ld will optimize long call (4-byte instruction) to short call (2-byte instruction), otherwise either this flag or `--relax` is absent, gnu-ld will not do the long call to short call optimization.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144617/new/
https://reviews.llvm.org/D144617
More information about the llvm-commits
mailing list