From 956f841e99e7e5dacc325a50be9b8185db83cc20 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Tue, 23 Jul 2013 12:50:12 +0000 Subject: store offset instead of address of module string, for position independent code on 64 bit linux --- cgaas.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cgaas.h b/cgaas.h index d9631fc..e2077c2 100644 --- a/cgaas.h +++ b/cgaas.h @@ -7,6 +7,9 @@ void store_word_in_data_section (UWORD i); void store_long_word_in_data_section (ULONG i); void define_data_label (LABEL *label); void store_label_in_data_section (LABEL *label); +#if defined (MACH_O64) || defined (LINUX) +void store_label_offset_in_data_section (LABEL *label); +#endif void store_label_offset_in_data_section (int label_id); void store_descriptor_in_data_section (LABEL *label); void store_descriptor_in_code_section (int label_id); -- cgit v1.2.3