Report error when aligning outside of a section

This commit is contained in:
Jakub Kądziołka
2020-10-12 00:27:54 +02:00
parent 6a8ae643d5
commit 822e4e7c44
4 changed files with 4 additions and 0 deletions

View File

@@ -378,6 +378,7 @@ uint32_t sect_GetOutputOffset(void)
void sect_AlignPC(uint8_t alignment, uint16_t offset)
{
checksection();
struct Section *sect = sect_GetSymbolSection();
if (sect->org != -1) {