From 9953b58092a1aad9193f92acaa0526655f8c3d96 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 19 Jun 1989 11:19:22 +0000 Subject: [PATCH] don't remove compiler generated labels when they are external --- mach/proto/as/comm6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mach/proto/as/comm6.c b/mach/proto/as/comm6.c index 1ecf20cf1..4c3991263 100644 --- a/mach/proto/as/comm6.c +++ b/mach/proto/as/comm6.c @@ -61,7 +61,8 @@ register item_t *ip; flag = SYM_EXT|SYM_LOC; /* S_EXT not stable in PASS_1 */ #endif THREE_PASS #ifdef GENLAB - if (strncmp(ip->i_name, genlab, sizeof(genlab)-1) == 0) + if (!(flag & SYM_EXT) && + strncmp(ip->i_name, genlab, sizeof(genlab)-1) == 0) flag = SYM_LAB; #endif GENLAB if (sflag & flag)