summaryrefslogtreecommitdiff
path: root/cgaas.c
diff options
context:
space:
mode:
authorJohn van Groningen2013-12-03 16:41:32 +0000
committerJohn van Groningen2013-12-03 16:41:32 +0000
commit6083fd01b12457472626ce5f28db5e4fcdc71afe (patch)
treee0c49fe6b5a813967d9d30e0f21fb2bf46adedbf /cgaas.c
parentimplement position independent code generation on 64 bit linux (fix __ARRAY__... (diff)
implement position independent code generation on 64 bit linux (fix code for jsr GOT label)
Diffstat (limited to 'cgaas.c')
-rw-r--r--cgaas.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cgaas.c b/cgaas.c
index 707082a..9669062 100644
--- a/cgaas.c
+++ b/cgaas.c
@@ -2569,12 +2569,13 @@ static void as_jsr_instruction (struct instruction *instruction)
store_c (0x15);
store_l (0);
store_pc_rel_got_label_in_code_section (label);
+ return;
} else if (label->label_flags & USE_PLT_LABEL){
store_c (0350);
store_l (0);
store_pc_rel_got_or_plt_label_in_code_section (label,PLT_PC_RELATIVE_RELOCATION);
+ return;
}
- return;
}
#endif
store_c (0350);