https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81142
--- Comment #7 from tomas_paukrt at conel dot cz --- I attached another C source file that is even simpler. Compiled program causes segmentation fault on AM335X (Cortex-A8) as well as on SPEAr320S-2 (ARM926EJ-S). Using option -ftls-model=initial-exec or -mtls-dialect=gnu2 leads to generating different assembler code that do not cause segmentation fault.