From ddf69cf33b438b757104f55c2de521e5c8bdf3b6 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sat, 18 Feb 2012 14:09:03 +0100 Subject: [PATCH] begnuas: make panic for tls on macho more clear --- ir/be/begnuas.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c index 63a34b0fa..707196aff 100644 --- a/ir/be/begnuas.c +++ b/ir/be/begnuas.c @@ -102,8 +102,10 @@ static void emit_section_macho(be_gas_section_t section) case GAS_SECTION_CSTRING: name = "section __TEXT,__const_coal,coalesced"; break; default: panic("unsupported scetion type 0x%X", section); } + } else if (flags & GAS_SECTION_FLAG_TLS) { + panic("thread local storage not supported on macho (section 0x%X)", section); } else { - panic("unsupported section type 0x%X\n", section); + panic("unsupported section type 0x%X", section); } } -- 2.20.1