Question about PIC code and GOT

vincent Dupaquis v.dupaquis@trusted-objects.com
Fri Jun 11 15:20:08 GMT 2021


     Hello,

     I am doing PIC (Position Independant Code) code using the ARM 
compiler, and effectively try to avoid the creation of the GOT (Global 
Offset Table).

     I've got the feeling the GOT is not convinient and goes in opposite 
direction than the one we try to achieve with having PIC, at least this 
is the reason why I'm trying to avoid it.

     Any clue on the reason why it has been implemented that way ?

     I have got the feeling that its avoidable in all cases, even 
without going deep at assembly level.

     Regards,
         Vincent.

-- 

*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>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20210611/0e5b67d1/attachment.sig>


More information about the Gcc mailing list