From 5a754c103953dcbfb06ec0c65bb09fae3ba89796 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Wed, 31 Jul 2013 12:00:03 +0000 Subject: don't use 12 bytes to store an 8 byte descriptor when generating position independent code on linux --- cgaas.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cgaas.c') diff --git a/cgaas.c b/cgaas.c index bbf6c77..822fabb 100644 --- a/cgaas.c +++ b/cgaas.c @@ -2341,7 +2341,13 @@ void store_label_offset_in_data_section (LABEL *label) void store_descriptor_in_data_section (LABEL *label) { store_label_plus_offset_in_data_section (label,2); + +#ifndef MACH_O64 +# ifdef LINUX + if (!pic_flag) +# endif store_long_word_in_data_section (0); +#endif } static void as_branch_label (struct label *label,int relocation_kind) -- cgit v1.2.3