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

Issue 454593002: PNaCl driver: Add libgcc to mixed native/bitcode links (Closed)

Created:
6 years, 4 months ago by Derek Schuff
Modified:
6 years, 4 months ago
Reviewers:
Mark Seaborn
CC:
native-client-reviews_googlegroups.com
Project:
nacl
Visibility:
Public.

Description

PNaCl driver: Add libgcc to mixed native/bitcode links When building with pre-translated object files, calls can be generated to libgcc/compiler-rt functions, but libgcc was not included on the bitcode link line, causing undefined references to the libgcc functions. Include libgcc on the bitcode link line to satisfy these references when using native objects. R=mseaborn@chromium.org BUG= https://code.google.com/p/nativeclient/issues/detail?id=3910 Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=13602

Patch Set 1 #

Patch Set 2 : fix 80col and comment typo #

Total comments: 4

Patch Set 3 : review, update expr parser to only evaluate ternary operands when needed #

Total comments: 4

Patch Set 4 : explicitly modify env rather than using var expansion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -12 lines) Patch
M pnacl/driver/driver_env.py View 3 1 chunk +8 lines, -0 lines 0 comments Download
M pnacl/driver/nativeld.py View 1 chunk +1 line, -9 lines 0 comments Download
M pnacl/driver/pnacl-driver.py View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M tests/toolchain/nacl.scons View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A tests/toolchain/needs_libgcc.c View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M toolchain_build/toolchain_build_pnacl.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Derek Schuff
6 years, 4 months ago (2014-08-07 22:36:31 UTC) #1
Mark Seaborn
LGTM. s/libcc/libgcc/ in commit message. Please wait for trybots to pass before committing. :-/ Would ...
6 years, 4 months ago (2014-08-07 23:13:02 UTC) #2
Derek Schuff
Your description is right. In practice the output of the bitcode link will almost never ...
6 years, 4 months ago (2014-08-08 21:11:55 UTC) #3
Derek Schuff
It turns out that the expression parser eagerly evaluates both sides of a ternary expression, ...
6 years, 4 months ago (2014-08-09 00:33:30 UTC) #4
Mark Seaborn
https://codereview.chromium.org/454593002/diff/40001/pnacl/driver/pnacl-driver.py File pnacl/driver/pnacl-driver.py (right): https://codereview.chromium.org/454593002/diff/40001/pnacl/driver/pnacl-driver.py#newcode126 pnacl/driver/pnacl-driver.py:126: '${ALLOW_NATIVE ? -L${LIBS_NATIVE_ARCH}} ' + Might an alternative be ...
6 years, 4 months ago (2014-08-09 07:11:51 UTC) #5
Derek Schuff
https://codereview.chromium.org/454593002/diff/40001/pnacl/driver/pnacl-driver.py File pnacl/driver/pnacl-driver.py (right): https://codereview.chromium.org/454593002/diff/40001/pnacl/driver/pnacl-driver.py#newcode126 pnacl/driver/pnacl-driver.py:126: '${ALLOW_NATIVE ? -L${LIBS_NATIVE_ARCH}} ' + On 2014/08/09 07:11:51, Mark ...
6 years, 4 months ago (2014-08-11 17:54:17 UTC) #6
Derek Schuff
6 years, 4 months ago (2014-08-11 21:46:54 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 manually as 13602 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698