public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Stefan Ring <stefanrin@gmail.com>
To: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: x86_64 windows binaries are always PIC?
Date: Wed, 1 Jun 2022 09:49:57 +0200	[thread overview]
Message-ID: <CAAxjCEyb=nqyeGUXK7kxxMdgyAFio5ztZ_Grj6Pr=7qkVjgkUw@mail.gmail.com> (raw)
In-Reply-To: <DM6PR05MB4697943468A2831347EA3781D6DC9@DM6PR05MB4697.namprd05.prod.outlook.com>

On Tue, May 31, 2022 at 9:49 PM unlvsur unlvsur via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> I found that GCC would always use %rip as the reference for the symbols for x86_64 windows binaries. Is it mandatory by windows and impossible to disable it?

I guess because almost all addressing modes work only with 32-bit
immediates, so there is no way to represent absolute memory addresses
in machine code.

      reply	other threads:[~2022-06-01  7:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-31 19:49 unlvsur unlvsur
2022-06-01  7:49 ` Stefan Ring [this message]

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='CAAxjCEyb=nqyeGUXK7kxxMdgyAFio5ztZ_Grj6Pr=7qkVjgkUw@mail.gmail.com' \
    --to=stefanrin@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /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).