mirror of
https://github.com/byteworksinc/Linker.git
synced 2024-11-20 22:30:51 +00:00
Give error about excessive alignment at the right time.
The error "Alignment factor must not exceed segment align factor" is now given when an ALIGN record with greater alignment than its segment is encountered. (This is the error that was given erroneously in other circumstances before the last commit.)
This commit is contained in:
parent
aa9a585d19
commit
8aa3c4e8c7
@ -26,6 +26,7 @@
|
||||
****************************************************************
|
||||
*
|
||||
Align private
|
||||
using Common
|
||||
|
||||
ldy #1 get the alignment factor
|
||||
lda [sp],Y
|
||||
@ -34,7 +35,12 @@ Align private
|
||||
iny
|
||||
lda [sp],Y
|
||||
sta r2
|
||||
add4 sp,#5 skip the alignment opcode and operand
|
||||
cmpl segAlign,r0 if alignment factor > segAlign
|
||||
bge lb1
|
||||
ph4 #0 Error(NULL,22)
|
||||
ph2 #22
|
||||
jsr Error
|
||||
lb1 add4 sp,#5 skip the alignment opcode and operand
|
||||
jsr DefineAlign do the align
|
||||
rts
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user