public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Bernd Schmidt <bernds@codesourcery.com>
To: Ilya Verbin <iverbin@gmail.com>, Jakub Jelinek <jakub@redhat.com>
Cc: Thomas Schwinge <thomas@codesourcery.com>,
	GCC Patches	<gcc-patches@gcc.gnu.org>,
	Michael Zolotukhin	<michael.v.zolotukhin@gmail.com>
Subject: Re: [gomp4] Add tables generation
Date: Mon, 12 May 2014 20:44:00 -0000	[thread overview]
Message-ID: <53713287.7040805@codesourcery.com> (raw)
In-Reply-To: <536B5835.8040002@codesourcery.com>

[-- Attachment #1: Type: text/plain, Size: 804 bytes --]

On 05/08/2014 12:11 PM, Bernd Schmidt wrote:
> On 05/06/2014 05:32 PM, Ilya Verbin wrote:
>> On 05 Apr 17:22, Bernd Schmidt wrote:
>>> Things seemed to work over here, but now I'm not certain whether the
>>> __start_/__stop_ functionality is GNU ld specific? Maybe we should
>>> just go back to the previous version of this patch which didn't try
>>> to use this.
>>>
>>> Bernd
>>
>> This approach does not work with shared libraries.
>>
>> The automatically inserted symbols have GLOBAL binding, therefore the
>> __start_/__stop_ from the executable overwrite the respective symbols
>> in DSO.
>
> Ok, I guess we should just go back to what we had previously. Here's
> what I intend to commit if there are no objections.

... plus the following to make it work with the changed section names.


Bernd



[-- Attachment #2: fixup-secnames.diff --]
[-- Type: text/x-patch, Size: 1270 bytes --]

Index: libgcc/ompstuff.c
===================================================================
--- libgcc/ompstuff.c	(revision 432834)
+++ libgcc/ompstuff.c	(working copy)
@@ -44,10 +44,10 @@ see the files COPYING3 and COPYING.RUNTI
 #if defined(HAVE_GAS_HIDDEN) && defined(ENABLE_OFFLOADING)
 void *_omp_func_table[0]
   __attribute__ ((__used__, visibility ("hidden"),
-		  section (".offload_func_table_section"))) = { };
+		  section ("__gnu_offload_funcs"))) = { };
 void *_omp_var_table[0]
   __attribute__ ((__used__, visibility ("hidden"),
-		  section (".offload_var_table_section"))) = { };
+		  section ("__gnu_offload_vars"))) = { };
 #endif
 
 #elif defined CRT_END
@@ -55,10 +55,10 @@ void *_omp_var_table[0]
 #if defined(HAVE_GAS_HIDDEN) && defined(ENABLE_OFFLOADING)
 void *_omp_funcs_end[0]
   __attribute__ ((__used__, visibility ("hidden"),
-		  section (".offload_func_table_section"))) = { };
+		  section ("__gnu_offload_funcs"))) = { };
 void *_omp_vars_end[0]
   __attribute__ ((__used__, visibility ("hidden"),
-		  section (".offload_var_table_section"))) = { };
+		  section ("__gnu_offload_vars"))) = { };
 extern void *_omp_func_table[];
 extern void *_omp_var_table[];
 void *__OPENMP_TARGET__[] __attribute__ ((__visibility__ ("hidden"))) =

  reply	other threads:[~2014-05-12 20:44 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-20 17:01 Bernd Schmidt
2014-03-20 19:24 ` Jakub Jelinek
2014-03-21 15:21   ` Bernd Schmidt
2014-03-21 15:28     ` Jakub Jelinek
2014-03-21 16:16       ` Bernd Schmidt
2014-04-04  9:33       ` Bernd Schmidt
2014-04-05 15:05         ` Thomas Schwinge
2014-04-05 15:24           ` Bernd Schmidt
2014-04-08  6:03             ` Jakub Jelinek
2014-05-06 15:32             ` Ilya Verbin
2014-05-08 10:11               ` Bernd Schmidt
2014-05-12 20:44                 ` Bernd Schmidt [this message]
2014-03-27 13:44 ` Ilya Verbin
2014-03-27 13:52   ` Bernd Schmidt
2014-03-27 13:59   ` Bernd Schmidt
2014-03-27 15:12   ` Jakub Jelinek
2014-03-27 16:17     ` Ilya Verbin
2014-03-27 16:23       ` Jakub Jelinek
2014-03-27 18:51         ` Ilya Verbin
2014-04-17 18:44         ` Ilya Verbin
2014-04-25 11:55           ` Ilya Verbin
2014-06-10 13:52           ` Bernd Schmidt
2014-06-10 18:07             ` Ilya Verbin
2014-08-13 16:19               ` Ilya Verbin
2014-08-18 16:08                 ` Ilya Verbin
2014-08-18 16:25                   ` Bernd Schmidt
2014-08-19 10:41                     ` Ilya Verbin
2014-08-19 11:55                       ` Bernd Schmidt
2014-08-19 12:26                         ` Ilya Verbin
2014-08-19 13:27                         ` Ilya Verbin
2014-09-02 17:50                           ` Ilya Verbin
2014-09-04 13:08                             ` Thomas Schwinge
2014-09-04 13:47                               ` Ilya Verbin
2014-09-04 13:54                               ` Thomas Schwinge
2014-09-05 15:09                                 ` Ilya Verbin
2014-09-08 18:46                                   ` Ilya Verbin
2014-09-03 19:24                   ` Thomas Schwinge
2014-04-02  7:34 ` Thomas Schwinge
2014-04-02  8:36   ` Thomas Schwinge
2014-04-03 16:15     ` Bernd Schmidt
2014-04-03 16:53       ` Ilya Verbin
2014-04-03 17:08         ` Bernd Schmidt
2014-04-03 17:25           ` Ilya Verbin
2014-04-03 17:31             ` Bernd Schmidt
2014-04-03 17:39               ` Ilya Verbin
2014-04-04  5:55       ` Thomas Schwinge
2014-04-04  9:25         ` Bernd Schmidt
2014-04-02  8:34 ` Thomas Schwinge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53713287.7040805@codesourcery.com \
    --to=bernds@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=iverbin@gmail.com \
    --cc=jakub@redhat.com \
    --cc=michael.v.zolotukhin@gmail.com \
    --cc=thomas@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).