Hi All
the linker said i am missing _GLOBAL_OFFSET_TABLE_, how to define it? what is it's struct{} look like?
thanks
from Peter ([email protected])
_GLOBAL_OFFSET_TABLE_
_GLOBAL_OFFSET_TABLE_ is a matter of the toolchain, i.e. it's not up to you to define it, it is defined by the compiler, if you use the right command line options.
Without knowing specifics, it's hard to tell what you should do different to get that table (or remove references to it).
Without knowing specifics, it's hard to tell what you should do different to get that table (or remove references to it).
Every good solution is obvious once you've found it.
I don't think so. As I said, _GLOBAL_OFFSET_TABLE_ is something internal to compiler and linker.mcheung63 wrote:I think i need to define one in my code...
It would help to know which files are compiled / linked with which command line options, and what versions of compiler / linker are used (as AJ said). Most likely some command options are used unwisely.
Every good solution is obvious once you've found it.