When compiling for arm cortex-m3 with options -fpic and -msingle-pic-base it creates a global offset table, However static variables, global or local, are not included in the global offset table, and have absolute addresses. is this a bug or a feature, or am I missing an extra option?
Asked
Active
Viewed 889 times
1
-
See this [GOT answer by **R**](http://stackoverflow.com/questions/9688076/process-linkage-table-and-global-offset-table). The *key concept* is **shared libraries**. You can create an executable with `-fpic` and it is still not a *shared library*; there is no reason for the compiler to emit anything to the **GOT**. – artless noise Jun 05 '13 at 19:57