Avoid external linkage call inside __ifunc__
authorAlisson Gusatti Azzolini <azzolini@fb.com>
Fri, 23 Sep 2016 01:49:16 +0000 (18:49 -0700)
committerFacebook Github Bot 0 <facebook-github-bot-0-bot@fb.com>
Fri, 23 Sep 2016 01:53:29 +0000 (18:53 -0700)
commit40eaf20c1bcb9223adc2cd8537f24b162d7fffe6
treeaf65e6261798123c3cb115ebe11698ebb02f8bc8
parentc27a6839ff172d033e631ef1dd87e7195a1d26ef
Avoid external linkage call inside __ifunc__

Summary:
In debug mode, CpuId() ends up triggering external linkage from inside this __ifunc__.
However, in PIC, the relocation of external symbols are not ready yet, causing a segfault.

This only reproes in dynamic linking (PIC / so) and dbg mode.

Reviewed By: luciang

Differential Revision: D3895239

fbshipit-source-id: 2b7856c10abb5cfe24736d5bfac28e7e9d0e8272
folly/CpuId.h