This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On 03/24/2016 01:21 PM, Jeffrey Walton wrote:
Actually EBX is no longer reserved on i686 when generating PIC code. I believe that code went into gcc-5.One of the GCC devs explained why its OK a few years ago, but I can't find the bug report with the explanation. I just use -fPIC all the time unless its i686 because the GOT pointer basically reserves EBX. On i686 it becomes a tradeoff because you lose a register, so you may not want -fPIC/-fPIE at all.
jeff
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |