This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Re: An undefined typed symbol bug?


"H. J. Lu" <hjl@lucon.org> writes:

> On Thu, Aug 21, 2003 at 03:42:26PM -0700, H. J. Lu wrote:
> > I got
> > 
> > # make
> > cc    -c -o x.o x.c
> > as   -o y.o y.s
> > ld -r -o foo.o x.o y.o
> > ld -r -o foo.o y.o x.o
> > ld: Warning: type of symbol `foo' changed from 1 to 2 in x.o
> > 
> > y.o has an undefined typed symbol, foo. Depending on if the linker
> > sees the definition first, ld may issue a warning. I'd like to get
> > rid of the warning. Any comments?
> > 
> 
> How about this patch?

Seems OK to me.  We might be hiding a programming error, but the error
won't make any difference in this particular case.  Any other
opinions?

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]