Section placement into C constants

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

 



I would like to get a reference to the start of the GOT in my code. My attempt:

extern void __got_start__;
void * const pGot = (void * const)&__got_start__;

However, pGot is assigned zero (not the start of the GOT) even though the
linker map file shows that __got_start__ is assigned the correct value.

If this is even possible, what is the best way to accomplish this outside of
an executable statement?

Thanks,
Luke




[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