|
|||||||||||
Technical Support Support Resources
Product Information |
C166: Section not Found After Updating to 7.57 or NewerInformation in this knowledgebase article applies to:
SYMPTOMIn our build script we compile a module in a sub directory and the input file to the compiler also does contain the path:
In the linker configuration the code of this module gets located via a SECTION directive:
This worked well up to the toolchain version 7.56. But after updating to 7.57, the following error is generated during linking:
Why does the new toolchain not work any more? CAUSE
From version 7.56 to 7.57 there was a change in the path handling
of the compiler. Previously, only Windows-style path separators '\'
were detected. As in the build script, Unix-style separators '/' are
used, the whole file parameter including the path was used as section
name for the code. Just none C characters were replaced with an
underscore. RESOLUTIONIn the SECTION directive, change the selector to just contain the module name, without path:
and linking will work again. MORE INFORMATION
Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.