This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
When enabling C++ exceptions in a project the following linker warning appears:
warning #10247-D: creating output section ".c6xabi.exidx" without a SECTIONS specification
warning #10247-D: creating output section ".c6xabi.extab" without a SECTIONS specification
Now, the first thing I try (since RTSC based projects normally don't need a custom linker command file) is to add the following to my .cfg:
Program.sectMap[".c6xabi.exidx"] = "DDR3";
Program.sectMap[".c6xabi.extab"] = "DDR3";
This results in an warning and the lines are ignored:
"./configPkg/linker.cmd", line 218: warning #10094-D: split placement (>>)
ignored for ".c6xabi.exidx": cannot split EH Index table
..and so I am forced to create a custom linker command file to link correctly.
Is there a way to solve this problem in the .cfg, without having to resort to creating a custom linker command file?
Thanks,
-itay
Itay,
that's a bug that can't be worked around in the cfg script. The fix for the bug is relatively simple, and you can try to add the change in your XDCtools installation. Go to packages/ti/targets/elf and open the file linkUtils.xs. At the top of the file, there is a map 'nonsplitable'. Add the entry
".c6xabi.exidx": 1
and rebuild your project.
Thanks, the fix works for me. Will this be permanently fixed in the next version? Is there a bug tracking number?
Here is the bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=375127. You can add your email to the CC list if you want to track the progress. We have just released XDCtools 3.23.02, so it was too late for that release. There could be another patch release 3.23.03 in 2-3 months, and if it is, the fix will be in it. The next major version will certainly have the fix.