Possible issue with in-kernel ELF loader.

Peter Wemm peter at wemm.org
Sun Jul 20 22:54:05 PDT 2003


Matthew Dillon wrote:
>    I got an odd bug report for DragonFly today.  Apparently the module loader
>    was broken, the kernel complained about not being able to find
>    'globaldata'.
> 
>    It turns out that the kernel's internal ELF loader is misinterpreting
>    an ABS symbol (i.e. set with .SET in assembly) whos value is 0 as being
>    'not found', and once that is fixed it was also confusing the absolute
>    symbol with a COMMON symbol.

Thanks for the pointer.  FWIW, We use -fno-common on 5.x to avoid common
symbols even existing in the first place.  There were a few missing
externs that this turned up.

Cheers,
-Peter
--
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5



More information about the freebsd-hackers mailing list