[clang] [llvm] [AVR] Handle flash RO data mapped to data space for newer devices (PR #146244)
Tom Vijlbrief via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 02:58:32 PDT 2025
================
@@ -651,8 +651,19 @@ void AVR::Linker::ConstructJob(Compilation &C, const JobAction &JA,
// This is almost always required because otherwise avr-ld
// will assume 'avr2' and warn about the program being larger
// than the bare minimum supports.
- if (Linker.find("avr-ld") != std::string::npos && FamilyName)
----------------
tomtor wrote:
@benshi001 If this line is relocated (moved a bit upwards) so that it is before handling user supplied linker arguments then a user could overwrite the default `-m` option.
As it is the user cannot overwrite the driver generated option.
https://github.com/llvm/llvm-project/pull/146244
More information about the llvm-commits
mailing list