Fix erroneous section check (symbols may not have a defined section in pass 1).
authorDavid Given <dg@cowlark.com>
Sat, 25 May 2013 23:35:15 +0000 (00:35 +0100)
committerDavid Given <dg@cowlark.com>
Sat, 25 May 2013 23:35:15 +0000 (00:35 +0100)
--HG--
branch : dtrg-videocore

mach/vc4/as/mach5.c

index a2227fd..de2bda2 100644 (file)
@@ -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