Fix erroneous section check (symbols may not have a defined section in pass 1).
--HG-- branch : dtrg-videocore
This commit is contained in:
parent
bd9497be77
commit
6284512b37
|
@ -383,7 +383,7 @@ static void branch_addcmp_common(quad opcode, int bits, struct expr_t* expr)
|
|||
quad type = expr->typ & S_TYP;
|
||||
int d;
|
||||
|
||||
if (type != DOTTYP)
|
||||
if ((pass>0) && (type != DOTTYP))
|
||||
serror("can't use this type of branch to jump outside the section");
|
||||
|
||||
/* The VC4 branch instructions express distance in 2-byte
|
||||
|
|
Loading…
Reference in a new issue