https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121608
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Georg-Johann Lay <g...@gcc.gnu.org>: https://gcc.gnu.org/g:f8c8edf88d98c22a74019b79fbc26d15207789f7 commit r15-10251-gf8c8edf88d98c22a74019b79fbc26d15207789f7 Author: Georg-Johann Lay <a...@gjlay.de> Date: Wed Aug 20 10:53:37 2025 +0200 AVR: target/121608 - Don't add --relax when linking with -r. The linker rejects --relax in relocatable links (-r), hence only add --relax when -r is not specified. gcc/ PR target/121608 * config/avr/specs.h (LINK_RELAX_SPEC): Wrap in %{!r...}. (cherry picked from commit 0f15ff7b511493e9197e6153b794081c1557ba02)