if (code == (int)N_SLINE)
{
- SYMR *sym_ptr;
+ SYMR *sym_ptr, dummy_symr;
shash_t *shash_ptr;
/* Skip ,0, */
return;
}
- if (code < 0 || code >= 0x100000)
+ /* Ignore line number 0 for now until G++ bug that generates them is fixed. */
+ if (code == 0)
+ return;
+
+ dummy_symr.index = code;
+ if (dummy_symr.index != code)
{
- error ("Line number for .stabs/.stabn directive cannot fit in index field (20 bits)");
+ error ("Line number (%d) for .stabs/.stabn directive cannot fit in index field (20 bits)",
+ code);
+
return;
}