OSDN Git Service

Fix our x86 PIC_PROLOGUE.
authorElliott Hughes <enh@google.com>
Sun, 10 Aug 2014 01:45:55 +0000 (18:45 -0700)
committerElliott Hughes <enh@google.com>
Sun, 10 Aug 2014 01:45:55 +0000 (18:45 -0700)
commit72d7e667c7e926cb120c4edb53cbf74c652ab915
treefe2a01812bf43a3e5df5cd53b3e069418747e18c
parentf4d21fba064c398110ec0428afc0a025afb2254e
Fix our x86 PIC_PROLOGUE.

The old definition only worked for functions that didn't use numbered
local labels. Upstream uses '666' not only as some kind of BSD in-joke,
but also because there's little likelihood of any function having
labels that high.

There's a wider question about whether we actually want to go via the
PLT at all in this code, but that's a question for another day.

Bug: 16906712
Change-Id: I3cd8ecc448b33f942bb6e783931808ef39091489
libc/arch-x86/include/machine/asm.h