[PATCH] D126282: [Driver] Add more options for target AVR when linking with lld

Ben Shi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 24 03:09:04 PDT 2022


benshi001 added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/AVR.cpp:38
   unsigned DataAddr;
+  unsigned FlashSize;
+  unsigned SRAMSize;
----------------
We need these information to correctly linking with lld.


================
Comment at: clang/lib/Driver/ToolChains/AVR.cpp:581
+      // __DATA_REGION_LENGTH__, and __EEPROM_REGION_LENGTH__ according to
+      // current MCU.
+      CmdArgs.push_back(
----------------
These three symbols are implicitly added to GNU avr-ld, but we have to add them exeplicitly to lld.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126282/new/

https://reviews.llvm.org/D126282



More information about the cfe-commits mailing list