[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
Wed Apr 12 20:16:53 PDT 2023


benshi001 added inline comments.


================
Comment at: lld/ELF/Arch/AVR.cpp:258
+
+  // Set the second instruction to NOP.
+  write16le(loc + 2, 0);
----------------
This `NOP` is just for padding, actually we need not handle it and left it unchanged. (However this will make `llvm-objdump` show an `<unknown>`)


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