Re: Problem with static linking

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

 



Zachary Turner <divisortheory@xxxxxxxxx> writes:

> What happens if you run valgrind on your hello world executable?

I get 32 errors about dependencies on uninitialized variables, much as
you mentioned.

I took a look at the first several.  They were all tests of %gs:0xc,
which is the multiple_threads field in the TCB.  That field is in memory
allocated by sbrk, which is guaranteed to be zero.  So I think although
valgrind may be correctly reporting that the program did not set the
field, I think it is wrong in thinking that the value is not known.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux