[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Ch.10.2 Libraries - shared lib compilation - -fPIC



Well, however the phrase of text myself complains about tells -fPIC must be used
if package is built for any architecture. Do I read then understand that phrase properly?

> -----Original Message-----
> From: Russ Allbery [mailto:rra@debian.org]
> Sent: Friday, 24. May 2019 01:13
> To: Andrey Rahmatullin <wrar@debian.org>
> Cc: Dudziak Krzysztof <Krzysztof.Dudziak@gemalto.com>; debian-
> policy@lists.debian.org
> Subject: Re: Ch.10.2 Libraries - shared lib compilation - -fPIC
>
> Andrey Rahmatullin <wrar@debian.org> writes:
>
> > Text relocations are forbidden at least on amd64 though.
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstac
> > koverflow.com%2Fquestions%2F7865059%2Fwhy-does-gcc-force-pic-for-x64-
> s
> > hared-
> libs&amp;data=02%7C01%7Ckrzysztof.dudziak%40gemalto.com%7C33542d
> >
> a291a74bd8db0e08d6dfd4372a%7C37d0a9db7c464096bfe31add5b495d6d%7C0
> %7C1%
> >
> 7C636942499900294115&amp;sdata=RMZjAnD3wtXrALTfoMgq%2FKHyTpIYH9d
> qR2P2Q
> > YKCDTo%3D&amp;reserved=0
>
> Yeah, but I believe not on i386.
>
> This is really a very 32-bit, x86-specific problem.  (Even other 32-bit architectures
> tend not to be as register-starved and therefore don't make this trade-off.)
>
> Hopefully this problem will eventually go away when 32-bit x86 goes away,
> although there are so many 32-bit x86 systems out there that it may take a
> while.
>
> --
> Russ Allbery (rra@debian.org)
> <https://eur01.safelinks.protection.outlook.com/?url=http:%2F%2Fwww.eyrie.
> org%2F~eagle%2F&amp;data=02%7C01%7Ckrzysztof.dudziak%40gemalto.com
> %7C33542da291a74bd8db0e08d6dfd4372a%7C37d0a9db7c464096bfe31add5b4
> 95d6d%7C0%7C1%7C636942499900294115&amp;sdata=p0f%2FrPu%2BLFDr5Fy
> NvPRMuAySdYrIAtmSNql1WO0NWFI%3D&amp;reserved=0>
________________________________
 This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized use or disclosure, either whole or partial, is prohibited.
E-mails are susceptible to alteration. Our company shall not be liable for the message if altered, changed or falsified. If you are not the intended recipient of this message, please delete it and notify the sender.
Although all reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.


Reply to: