Commit 3a6bdf0
scripts: gen_relocate_app.py: add quotes around section names in templates
Section names may contain paths to files with special characters.
For example, a valid file path might contain '@'. Then using
CONFIG_CODE_DATA_RELOCATION to relocate section, macro
__in_section_unique() will generate section name like this:
KEEP(*file.c.obj(.noinit.WEST_TOPDIR/path_with@char/file.c.0))
Such section names cannot be processed by ld because '@'
is a special character for ld.
This fix wraps section names in double quotes to escape
special characters for ld.
Signed-off-by: Nikita Divakov <grommerin@gmail.com>1 parent 99219ce commit 3a6bdf0
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments