I created a new Assembly project in which I will write a test.s file and just link against an entire app and its mocks (both of those are in Assembly too). The test.s file is mostly empty so far, yet when now compiling everything it just says "Error[66]: Segment too long (max is ffff) "
The error points to some random line in the application code.
The line in question is a jz instruction to a label in that file. If I comment that jz instruction it just complains about the next jz instructions which is 15 lines lower in the file. Is this somehow related to the jump instruction and not the code size or so?
And the project of the application compiles just fine on its own. I also copied the application's linker file, which defines memory segments there are no mocks or whatever so far, just an app and a new test.s file containing a main with its setup
How does one go about debugging such a cryptic error to figure out what causes this issue?
I randomly tried putting the origing to 00000h, 02000h or 0ffffh but none of those made any difference or gave a different error.
Thanks
EDIT:
Some more info:
- for MSP430F148
- IAR workbench IDE 6.50.1