From 1f5c7f3c529601888ab74ae5028b298ba2d6f8de Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Fri, 5 Feb 2010 19:11:43 +0000 Subject: [PATCH] Emit the symbol of PIC trampolines. [r27058] --- ir/be/begnuas.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c index 097d6938b..d1ad90448 100644 --- a/ir/be/begnuas.c +++ b/ir/be/begnuas.c @@ -1191,6 +1191,9 @@ static void dump_indirect_symbol(const ir_entity *entity, be_gas_section_t secti /* we can only do PIC code on macho so far */ assert(be_gas_object_file_format == OBJECT_FILE_FORMAT_MACH_O); + be_emit_ident(get_entity_ld_ident(entity)); + be_emit_cstring(":\n"); + be_emit_write_line(); be_emit_cstring("\t.indirect_symbol "); be_emit_ident(get_entity_ident(entity)); be_emit_char('\n'); -- 2.20.1