From 6284512b374873bb014dda26006d8aaf3770aa9d Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 26 May 2013 00:35:15 +0100 Subject: [PATCH] Fix erroneous section check (symbols may not have a defined section in pass 1). --HG-- branch : dtrg-videocore --- mach/vc4/as/mach5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mach/vc4/as/mach5.c b/mach/vc4/as/mach5.c index a2227fd5e..de2bda2ad 100644 --- a/mach/vc4/as/mach5.c +++ b/mach/vc4/as/mach5.c @@ -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 -- 2.34.1