[PATCH] D146216: [lld][ELF] Relax long jump/call to short jump/call on AVR
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 28 01:24:18 PDT 2023
benshi001 added a comment.
Please refer to gun-ld,
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=bfd/elf32-avr.c;h=702719136d09acbc8c98ec49ab8129d0f33fffa8;hb=HEAD#l2721
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=bfd/elf32-avr.c;h=702719136d09acbc8c98ec49ab8129d0f33fffa8;hb=HEAD#l2738
gnu-ld also replace JMP to a pair of RJMP+NOP, since it does save one CPU cycle, because the NOP is never executed, it is just a padding word.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146216/new/
https://reviews.llvm.org/D146216
More information about the llvm-commits
mailing list