Merge pull request #599 from NieDzejkob/stray-align

Report error when aligning outside of a section
This commit is contained in:
Eldred Habert
2020-10-12 01:43:35 +02:00
committed by GitHub
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) {

View File

@@ -0,0 +1 @@
align 1

View File

@@ -0,0 +1,2 @@
FATAL: align-pc-outside-section.asm(1):
Code generation before SECTION directive

View File