don't remove compiler generated labels when they are external

This commit is contained in:
ceriel 1989-06-19 11:19:22 +00:00
parent 1205b95090
commit 9953b58092

View file

@ -61,7 +61,8 @@ register item_t *ip;
flag = SYM_EXT|SYM_LOC; /* S_EXT not stable in PASS_1 */ flag = SYM_EXT|SYM_LOC; /* S_EXT not stable in PASS_1 */
#endif THREE_PASS #endif THREE_PASS
#ifdef GENLAB #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; flag = SYM_LAB;
#endif GENLAB #endif GENLAB
if (sflag & flag) if (sflag & flag)