Mail Archives: djgpp-workers/2001/06/26/02:06:26
On Mon, 25 Jun 2001, Mark E. wrote:
> > That doesn't really answer my question. Is ignoring these section a
> > clean solution or not?
>
> Yes it is.
>
So should I commit related patch?
Andris
Index: dxegen.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/dxe/dxegen.c,v
retrieving revision 1.5
diff -p -3 -r1.5 dxegen.c
*** dxegen.c 2001/06/09 21:37:10 1.5
--- dxegen.c 2001/06/26 05:42:24
*************** int main(int argc, char **argv)
*** 186,192 ****
name
);
#endif
! if (sym[i].e_scnum == 0)
{
printf("Error: object contains unresolved external symbols
(%s)\n", name);
errors ++;
--- 186,195 ----
name
);
#endif
! /* With gcc-3.0 I'm getting .comment section with e_scnum==0. I don't know
! whether it's correct to skip it though . It seems to be a problem with binutils.
! Until it's fixed this helps dxegen to ignore problem ... (AP) */
! if (sym[i].e_scnum == 0 && strncmp(sym[i].e.e_name,".comment",8)!=0)
{
printf("Error: object contains unresolved external symbols (%s)\n", name);
errors ++;
- Raw text -