https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100432
--- Comment #2 from xicojovor at dropjar dot com --- The minimal example is: int main(void) { return 0; } void* get_self_address(void) { return (void*)get_self_address; } compiled with -marm -Os -fPIC working good (maybe not the best) with gcc 4.5.4, and not ok with gcc version 5.4, 6.3.0, 10.2, 10.3.