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

Issue 652109: Don't build NaCl's syscall handler into a shared library (Closed)

Created:
10 years, 10 months ago by Mark Seaborn
Modified:
9 years, 5 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Don't build NaCl's syscall handler into a shared library Fixes shared library Chromium build on x86-64 on Linux. BUG=35829 TEST=build Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=39729

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M chrome/nacl.gypi View 1 chunk +4 lines, -1 line 1 comment Download

Messages

Total messages: 7 (0 generated)
Mark Seaborn
This fixes the build but it may not be ideal if it statically links more ...
10 years, 10 months ago (2010-02-23 10:58:32 UTC) #1
Evan Martin
http://codereview.chromium.org/652109/diff/1/2 File chrome/nacl.gypi (right): http://codereview.chromium.org/652109/diff/1/2#newcode69 chrome/nacl.gypi:69: '../native_client/src/trusted/validator_x86/validator_x86.gyp:ncvalidate', Are all of these dependencies marked as static ...
10 years, 10 months ago (2010-02-23 11:03:17 UTC) #2
Mark Seaborn
On 2010/02/23 11:03:17, Evan Martin wrote: > http://codereview.chromium.org/652109/diff/1/2#newcode69 > chrome/nacl.gypi:69: > '../native_client/src/trusted/validator_x86/validator_x86.gyp:ncvalidate', > Are all ...
10 years, 10 months ago (2010-02-23 11:33:11 UTC) #3
Evan Martin
On 2010/02/23 11:33:11, mseaborn1 wrote: > On 2010/02/23 11:03:17, Evan Martin wrote: > > http://codereview.chromium.org/652109/diff/1/2#newcode69 ...
10 years, 10 months ago (2010-02-23 11:40:56 UTC) #4
jochen (gone - plz use gerrit)
I compiled stuff locally, and it worked (i.e. no link error, and I could fire ...
10 years, 10 months ago (2010-02-23 14:37:56 UTC) #5
Mark Seaborn
On Tue, Feb 23, 2010 at 2:37 PM, <jochen@chromium.org> wrote: > I compiled stuff locally, ...
10 years, 10 months ago (2010-02-23 15:56:51 UTC) #6
gregoryd
10 years, 10 months ago (2010-02-23 19:07:26 UTC) #7
Mark,
You are correct about sel_ldr code being linked into Chrome. sel_ldr target
exists in NaCl gyp files (for testing purposes), but no Chrome target
depends on it. The situation is different for Win64 (sel_ldr is linked into
a separate 64-bit binary), but that's another story.

LGTM

On Tue, Feb 23, 2010 at 02:58, <mseaborn@chromium.org> wrote:

> Reviewers: Evan Martin, bsy, sehr, Markus (顧孟勤), jochen, gregoryd,
>
> Message:
> This fixes the build but it may not be ideal if it statically links more
> than is
> necessary.
>
> However, as I understand it, the chromium executable usually links in all
> of
> NaCl's sel_ldr, and it does not invoke sel_ldr at run time (despite the
> fact
> that there is also a sel_ldr target in the Chromium build).  Greg, can you
> comment?
>
> Mark
>
>
> Description:
> Don't build NaCl's syscall handler into a shared library
>
> Fixes shared library Chromium build on x86-64 on Linux.
>
> BUG=35829
> TEST=build
>
> Please review this at http://codereview.chromium.org/652109
>
> Affected files:
>  M chrome/nacl.gypi
>
>
> Index: chrome/nacl.gypi
> diff --git a/chrome/nacl.gypi b/chrome/nacl.gypi
> index
>
d142af7efa9640f1d4b996d0ea127e86dfbf0384..1858f970833b78b260fad47d241db674d89bc4ea
> 100644
> --- a/chrome/nacl.gypi
> +++ b/chrome/nacl.gypi
> @@ -47,7 +47,10 @@
>   'targets': [
>     {
>       'target_name': 'nacl',
> -      'type': '<(library)',
> +      # The TLS (Thread Local Storage) access used by NaCl on x86-64
> +      # on Linux/ELF can't be linked into a shared library, so we
> +      # can't use '<(library)' here.  See http://crbug.com/35829.
> +      'type': 'static_library',
>       'msvs_guid': '83E86DAF-5763-4711-AD34-5FDAE395560C',
>       'variables': {
>         'nacl_target': 1,
>
>
>

Powered by Google App Engine
This is Rietveld 408576698