Commit 2e165080 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Correct binary emission of TLS entities.

[r26663]
parent c4304d0f
......@@ -2351,6 +2351,14 @@ static void bemit_entity(ir_entity *entity, bool entity_sign, int offset,
set_entity_backend_marked(entity, 1);
be_gas_emit_entity(entity);
if (get_entity_owner(entity) == get_tls_type()) {
if (get_entity_visibility(entity) == visibility_external_allocated) {
be_emit_cstring("@INDNTPOFF");
} else {
be_emit_cstring("@NTPOFF");
}
}
if (is_relative) {
be_emit_cstring("-.");
offset -= 4;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment