[patch,avr,2.45] Backport PR33197 to 2.45 release branch
Georg-Johann Lay
avr@gjlay.de
Thu Jul 24 07:59:58 GMT 2025
This patch is a fix from Alan that avoids
${var+text}
in ld/scripttempl/avr.sc where text is multi line and
contains \".
https://sourceware.org/PR33197
IIUC this is needed for older versions of bash that have
trouble with such expressions.
Ok for binutils-2_45-branch?
Johann
--
PR 33197 [AVR] Incorrect syntax in generated ldscript
Rearrange scripttempl/avr.sc to avoid oddities of shells expanding
${RELOCATING+stuff} in here documents where "stuff" contains quoted
strings. Also I think it is better to avoid multi-line "stuff" as it
can be tricky to spot the ending brace.
(cherry picked from commit ae114fb523efe908f9e807359e2f494ee64d2801)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr33197.diff
Type: text/x-patch
Size: 2699 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250724/e3e8b30e/attachment.bin>
More information about the Binutils
mailing list