DF_STATIC_TLS flag indicates that the shared object or executable contains code using a static thread-local storage scheme.
Patch checks if IE/LE relocations were used to check if the code uses a static model. If so it sets the DF_STATIC_TLS flag.
It is based on D32354 which was reverted because we decided to not support the DF_STATIC_TLS at that time.
But now it will be used in FreeBSD.