public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Nikos Dragazis <ndragazis@arrikto.com>
Cc: Florian Weimer <fweimer@redhat.com>, gcc-help@gcc.gnu.org
Subject: Re: Force global-dynamic TLS model
Date: Wed, 24 Jun 2020 08:21:07 -0500	[thread overview]
Message-ID: <20200624132107.GC31009@gate.crashing.org> (raw)
In-Reply-To: <6db06132-9fd3-ff37-0021-25962ce5d2de@arrikto.com>

On Wed, Jun 24, 2020 at 02:00:57PM +0300, Nikos Dragazis wrote:
> On 24/6/20 11:59 π.μ., Florian Weimer wrote:
> >   For many targets, the link editor still performs
> >relaxation.  To turn this off, you will have to link the executable with
> >-shared, I think, with some hackery to produce an executable that can
> >actually be run.
> You are right. This is what is happening in my case. So, the problem is
> not the compiler, is the static linker. And there is no option that can
> turn off relaxations on the static linker.

There is the --no-relax option to ld (pass it as -Wl,--no-relax from GCC),
but turing off all relaxation may have unintended consequences.


Segher

  reply	other threads:[~2020-06-24 13:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-23 20:37 Nikos Dragazis
2020-06-24  8:59 ` Florian Weimer
2020-06-24 11:00   ` Nikos Dragazis
2020-06-24 13:21     ` Segher Boessenkool [this message]
2020-06-24 13:23       ` Florian Weimer

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=20200624132107.GC31009@gate.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=fweimer@redhat.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=ndragazis@arrikto.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).