Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Issue 1774383002: PNaCl Dynamic Linking: Force __pnacl_pso_root to be an external declaration. (Closed)

Created:
4 years, 9 months ago by Sean Klein
Modified:
4 years, 9 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@fixes
Target Ref:
refs/heads/master
Visibility:
Public.

Description

PNaCl Dynamic Linking: 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. Previously, translating a pso with --use-sz caused the warning: "cannot find entry symbol '__pnacl_pso_root'". That warning is removed with this CL. Fixes revert from https://codereview.chromium.org/1745783002/ TEST=external_declaration.ll BUG=https://bugs.chromium.org/p/nativeclient/issues/detail?id=4351 R=kschimpf@google.com, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=0a3c523d94c620457f1572ac5c526a4fee983b0e

Patch Set 1 #

Total comments: 17

Patch Set 2 : Added test #

Total comments: 6

Patch Set 3 : Updated external declaration test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -9 lines) Patch
M src/IceGlobalInits.h View 1 7 chunks +23 lines, -7 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 1 chunk +11 lines, -2 lines 0 comments Download
A tests_lit/llvm2ice_tests/external_declaration.ll View 1 2 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
Sean Klein
This version is passing "make -f Makefile.standalone presubmit" (conditional on the le32-nacl-objdump patch landing). Sorry ...
4 years, 9 months ago (2016-03-09 03:02:35 UTC) #4
Mark Seaborn
https://codereview.chromium.org/1774383002/diff/1/src/IceGlobalInits.h File src/IceGlobalInits.h (right): https://codereview.chromium.org/1774383002/diff/1/src/IceGlobalInits.h#newcode74 src/IceGlobalInits.h:74: void setLinkage(llvm::GlobalValue::LinkageTypes l) { Linkage = l; } Style ...
4 years, 9 months ago (2016-03-09 03:37:15 UTC) #6
Jim Stichnoth
https://codereview.chromium.org/1774383002/diff/1/src/IceGlobalInits.h File src/IceGlobalInits.h (right): https://codereview.chromium.org/1774383002/diff/1/src/IceGlobalInits.h#newcode416 src/IceGlobalInits.h:416: const bool SameMangling = (OldSuppressMangling == getSuppressMangling()); Just FYI. ...
4 years, 9 months ago (2016-03-09 16:29:35 UTC) #7
Jim Stichnoth
+karl who knows this code better
4 years, 9 months ago (2016-03-09 16:30:11 UTC) #9
Karl
https://codereview.chromium.org/1774383002/diff/1/src/IceGlobalInits.h File src/IceGlobalInits.h (right): https://codereview.chromium.org/1774383002/diff/1/src/IceGlobalInits.h#newcode260 src/IceGlobalInits.h:260: void dump(Ostream &Stream) const override final; Doesn't final imply ...
4 years, 9 months ago (2016-03-09 17:06:50 UTC) #10
Sean Klein
Added a (very simple) external declaration test. Currently not Non-SFI specific (though it easily could ...
4 years, 9 months ago (2016-03-10 23:45:23 UTC) #12
Jim Stichnoth
Otherwise LGTM, but please get Karl's LGTM as well. https://codereview.chromium.org/1774383002/diff/1/src/IceGlobalInits.h File src/IceGlobalInits.h (right): https://codereview.chromium.org/1774383002/diff/1/src/IceGlobalInits.h#newcode450 src/IceGlobalInits.h:450: ...
4 years, 9 months ago (2016-03-11 01:20:29 UTC) #13
Sean Klein
https://codereview.chromium.org/1774383002/diff/20001/tests_lit/llvm2ice_tests/external_declaration.ll File tests_lit/llvm2ice_tests/external_declaration.ll (right): https://codereview.chromium.org/1774383002/diff/20001/tests_lit/llvm2ice_tests/external_declaration.ll#newcode1 tests_lit/llvm2ice_tests/external_declaration.ll:1: ; RUN: %if --need=allow_dump --command %p2i -i %s --target=x8632 ...
4 years, 9 months ago (2016-03-11 01:27:45 UTC) #14
Karl
lgtm
4 years, 9 months ago (2016-03-11 15:29:52 UTC) #15
Sean Klein
4 years, 9 months ago (2016-03-11 17:49:41 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
0a3c523d94c620457f1572ac5c526a4fee983b0e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698