linker: common-rom: tweak section naming to feet all linkers
MWDT toolchain adds additional suffix to sections name in case of
ffunction-sections / fdata-sections are enabled.
The 40d3653758 commit
(device: add post-process of elf file to manage device handles)
breaks linkage with MWDT toolchain as it adds new sections
which are not meet MWDT requirements.
Let's pick a single set of rules and syntax that work for all
toolchain.
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
This commit is contained in:
parent
11016415dd
commit
fd5fa203b6
1 changed files with 2 additions and 2 deletions
|
|
@ -41,9 +41,9 @@
|
||||||
{
|
{
|
||||||
__device_handles_start = .;
|
__device_handles_start = .;
|
||||||
#ifdef LINKER_PASS2
|
#ifdef LINKER_PASS2
|
||||||
KEEP(*(SORT(.__device_handles_pass2)));
|
KEEP(*(SORT(.__device_handles_pass2*)));
|
||||||
#else /* LINKER_PASS2 */
|
#else /* LINKER_PASS2 */
|
||||||
KEEP(*(SORT(.__device_handles_pass1)));
|
KEEP(*(SORT(.__device_handles_pass1*)));
|
||||||
#endif /* LINKER_PASS2 */
|
#endif /* LINKER_PASS2 */
|
||||||
__device_handles_end = .;
|
__device_handles_end = .;
|
||||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue