Dear Experts,
we upgraded our project from
SYS/BIOS 6.33.06.50, XDCtools 3.23.04.60, ARM Compiler 4.9.6 to
SYS/BIOS 6.35.01.29, XDCtools 3.25.0.48, ARM Compiler 5.0.4 and encountered the following compilation error:
js: "C:/.../03_Workspace/CCS/linker.xdt#112(eval)", line 1: TypeError: Cannot find function genElfSections in object [object Object]
The linker.xdt file is part of project workspace and referenced in the .cfg file as link template file. The genElfSections function within linker.xdt is called in the following way:
%var myUtils = xdc.loadCapsule("ti/targets/arm/elf/linkUtils.xs");
`myUtils.genElfSymbols(prog)`
`myUtils.genElfSections(prog)`
I have noticed that in the new XDCtool version the genElfSections function is missing in linkUtils.xs file. This would explain the error. What I do not understand is that in the linkcmd.xdt file of the new XDCtools version both functions are still called, but in a different manner than it was done in previous XDCtools version.
`xdc.loadCapsule("ti/targets/arm/elf/linkUtils.xs").genElfSymbols(prog)`
`xdc.loadCapsule("ti/targets/elf/linkUtils.xs").genElfSections(prog)`
Using this way of calling the genElfSections function in our linker.xdt file --> the compilation failure disappears.
My question is why was this done and where is the genElfSections function now defined?
Why does it make a difference calling it this way instead of `myUtils.genElfSections(prog)`?
Many thanks and best regards,
GINNI