Closed Laksen closed 11 years ago
My guess is that this is because you're not providing a name for each section, so when it starts adding the section entries into the table, the assertion for whether the name is NULL fails (but it could not be that; I haven't looked).
I'm not sure what you expect each section to do in this case either? The toolchain linker does not pre-define any sections; it's up to the developer to specify what sections they want. Most commonly, the C standard library's bootstrap does .OUTPUT INIT and .OUTPUT CODE so that all of the global initializers are executed before the code starts executing. I think you should probably check the linker and assembler documentation at http://dcputoolcha.in/docs to get an idea of how .SECTION and .OUTPUT work. They are in some ways simpler and in other ways more low-level than your average linker sections.
This seems to have been fixed.