OSDN Git Service

Force __pnacl_pso_root to be an external declaration.
authorSean Klein <smklein@chromium.org>
Fri, 26 Feb 2016 22:34:38 +0000 (14:34 -0800)
committerSean Klein <smklein@chromium.org>
Fri, 26 Feb 2016 22:34:38 +0000 (14:34 -0800)
commit352db9354e9c30f99c6f87674f70a6f23a9ef7eb
treece1808e4735872f734e6ce3ca43a9c3e323ca650
parent44b3ce88ba43d5afc8ab9ddadead804f6901afb0
Force __pnacl_pso_root to be an external declaration.

This CL updates "isPNaClABIExternalName" -- Subzero checked for the symbol
"__pnacl_pso_root" as a function, but it is a declaration, and should be
checked as one. Additionally, when the PNaClTranslator is verifying the linkage
of declarations, allow "__pnacl_pso_root" to be flipped to external as a special
case.

TEST=pnacl-translate -pso --use-sz -arch x86-32-nonsfi test_pll.final.pso
BUG=https://bugs.chromium.org/p/nativeclient/issues/detail?id=4351
R=jpp@chromium.org

Review URL: https://codereview.chromium.org/1740033002 .
src/IceGlobalInits.h
src/PNaClTranslator.cpp