public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: vincent Dupaquis <v.dupaquis@trusted-objects.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: <gcc-help@gcc.gnu.org>
Subject: Re: Question related to -fPIC behaviour across architectures
Date: Tue, 3 May 2022 17:45:03 +0200	[thread overview]
Message-ID: <ef51c93d-ac74-1b36-fe5e-9bc879ef7771@trusted-objects.com> (raw)
In-Reply-To: <87tua6g049.fsf@oldenburg.str.redhat.com>


[-- Attachment #1.1: Type: text/plain, Size: 1146 bytes --]

Thanks for taking the time writing this down, I understand better now. 
It also matches gcc's documentation.

Regards,
     Vincent.

Le 03/05/2022 à 16:29, Florian Weimer a écrit :

> * vincent Dupaquis:
>
>> - Did I miss anything ?
> The linker can perform relaxations (e.g., elimination of GOT
> indirection) based on whole-program analysis, something the compiler
> cannot do.  Such optimizations are very much target-dependent, and they
> often need some previous ABI work to define new relaxable relocations
> for relocatable object files.
>
>> - Is there somewhere a common definition of what mean PIC for the
>>    different architectures ?
> Not really, not even for ELF.  There are some common assumptions in the
> background for ELF implementations (e.g., one canonical function
> address), but how you get there varies somewhat.
>
> Thanks,
> Florian
>
-- 

*Vincent Dupaquis*
Software security & Cryptography expert
06 24 58 17 05
/Europarc de Pichaury Bâtiment B8 1330 rue Guillibert Gautier de la 
Lauzière 13290 Aix-en-Provence/

www.trusted-objects.com <http://www.trusted-objects.com>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

      reply	other threads:[~2022-05-03 15:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-14 22:43 Compile GCC using only tools isolated from host environment Benjamin Lovy
2022-03-15  7:19 ` Xi Ruoyao
2022-03-16 16:06   ` Benjamin Lovy
2022-03-15  8:46 ` Jonathan Wakely
2022-05-03  8:26 ` Question related to -fPIC behaviour across architectures vincent Dupaquis
2022-05-03 10:24   ` Xi Ruoyao
2022-05-03 13:29     ` vincent Dupaquis
2022-05-03 14:29   ` Florian Weimer
2022-05-03 15:45     ` vincent Dupaquis [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=ef51c93d-ac74-1b36-fe5e-9bc879ef7771@trusted-objects.com \
    --to=v.dupaquis@trusted-objects.com \
    --cc=fweimer@redhat.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).