[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: oskit/mach entropy trouble

From: Neal H. Walfield
Subject: Re: oskit/mach entropy trouble
Date: 03 Apr 2003 17:31:33 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2

> Also, does anyone know what is meant by the 'size' of a function
> symbol?  Ie, "/usr/bin/ld: Warning: size of symbol `osenv_wakeup'
> changed from 26 to 42 in
> /usr/local/lib/oskit/../liboskit_dev.a(sleep.o)".  What does the size
> mean?  Reading the ELF spec hasn't helped me with this, nor has
> googling, nor has asking in #hurd at random times.

I suspect you have the following problem: you are adding a file,
`new.o', which contains a function `foo'.  There is a module `m' which
which references functions `foo' and `bar'.  There is a second file,
`orig.o', which contains functions `foo' and `bar'.  The link order

  gcc m new.o orig.o

Thus, `foo' is taken from `new.o' (since `foo' is undefined after
reading `m').  Then `orig.o' is added (since `bar' is undefined at
that point in the link) but since we must add files (and not
functions) we end up with `foo' being redefined!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]