The code in elf_i386_relocate_section for R_386_TLS_LDO_32 checks info->shared where it should probably check !info->executable.
The code in elf_i386_ relocate_ section for R_386_TLS_LDO_32 checks info->shared where it should probably check !info->executable.