| OLD | NEW |
| 1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
| 2 | 2 |
| 3 <section id="dynamic-linking-and-loading-with-glibc"> | 3 <section id="dynamic-linking-and-loading-with-glibc"> |
| 4 <h1 id="dynamic-linking-and-loading-with-glibc">Dynamic Linking and Loading with
glibc</h1> | 4 <h1 id="dynamic-linking-and-loading-with-glibc">Dynamic Linking and Loading with
glibc</h1> |
| 5 <div class="contents local" id="contents" style="display: none"> | 5 <div class="contents local" id="contents" style="display: none"> |
| 6 <ul class="small-gap"> | 6 <ul class="small-gap"> |
| 7 <li><a class="reference internal" href="#c-standard-libraries-glibc-and-newlib"
id="id1">C standard libraries: glibc and newlib</a></li> | 7 <li><a class="reference internal" href="#c-standard-libraries-glibc-and-newlib"
id="id1">C standard libraries: glibc and newlib</a></li> |
| 8 <li><a class="reference internal" href="#sdk-toolchains" id="id2">SDK toolchains
</a></li> | 8 <li><a class="reference internal" href="#sdk-toolchains" id="id2">SDK toolchains
</a></li> |
| 9 <li><p class="first"><a class="reference internal" href="#specifying-and-deliver
ing-shared-libraries" id="id3">Specifying and delivering shared libraries</a></p
> | 9 <li><p class="first"><a class="reference internal" href="#specifying-and-deliver
ing-shared-libraries" id="id3">Specifying and delivering shared libraries</a></p
> |
| 10 <ul class="small-gap"> | 10 <ul class="small-gap"> |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 the list of shared library dependencies using tools such as <code>objdump_</code
>.</p> | 313 the list of shared library dependencies using tools such as <code>objdump_</code
>.</p> |
| 314 <h3 id="deploying-a-dynamically-linked-application">Deploying a dynamically link
ed application</h3> | 314 <h3 id="deploying-a-dynamically-linked-application">Deploying a dynamically link
ed application</h3> |
| 315 <p>As described above, an application’s manifest file must explicitly list
all the | 315 <p>As described above, an application’s manifest file must explicitly list
all the |
| 316 executable code modules that the application directly depends on, including | 316 executable code modules that the application directly depends on, including |
| 317 modules from the application itself (.nexe and .so files), modules from the | 317 modules from the application itself (.nexe and .so files), modules from the |
| 318 Native Client SDK (e.g., libppapi_cpp.so), and perhaps also modules from | 318 Native Client SDK (e.g., libppapi_cpp.so), and perhaps also modules from |
| 319 <a class="reference external" href="http://code.google.com/p/naclports/">naclpor
ts</a> or from | 319 <a class="reference external" href="http://code.google.com/p/naclports/">naclpor
ts</a> or from |
| 320 <a class="reference external" href="../../community/middleware">middleware syste
ms</a> that | 320 <a class="reference external" href="../../community/middleware">middleware syste
ms</a> that |
| 321 the application uses. You must provide all of those modules as part of the | 321 the application uses. You must provide all of those modules as part of the |
| 322 application deployment process.</p> | 322 application deployment process.</p> |
| 323 <p>As explained in <a class="reference internal" href="/native-client/devguide/d
istributing.html"><em>Distributing Your Application</em></a>, there are two basi
c ways to deploy an application:</p> | 323 <p>As explained in <a class="reference internal" href="/native-client/devguide/d
istributing.html"><em>Distributing Your Application</em></a>, there |
| 324 are two basic ways to deploy a <a class="reference external" href="/apps">Chrome
app</a>:</p> |
| 324 <ul class="small-gap"> | 325 <ul class="small-gap"> |
| 325 <li><strong>hosted application:</strong> all modules are hosted together on a we
b server of | 326 <li><strong>hosted application:</strong> all modules are hosted together on a we
b server of |
| 326 your choice</li> | 327 your choice</li> |
| 327 <li><strong>packaged application:</strong> all modules are packaged into one fil
e, hosted in | 328 <li><strong>packaged application:</strong> all modules are packaged into one fil
e, hosted in |
| 328 the Chrome Web Store, and downloaded to the user’s machine</li> | 329 the Chrome Web Store, and downloaded to the user’s machine</li> |
| 329 </ul> | 330 </ul> |
| 330 <p>You must deploy all the modules listed in your application’s manifest f
ile for | 331 <p>You must deploy all the modules listed in your application’s manifest f
ile for |
| 331 either the hosted application or the packaged application case. For hosted | 332 either the hosted application or the packaged application case. For hosted |
| 332 applications, you must upload the modules to your web server. For packaged | 333 applications, you must upload the modules to your web server. For packaged |
| 333 applications, you must include the modules in the application’s Chrome Web | 334 applications, you must include the modules in the application’s Chrome Web |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 in the .nmf file – either the files are the wrong type or kind, or an | 412 in the .nmf file – either the files are the wrong type or kind, or an |
| 412 expected library is missing.</dd> | 413 expected library is missing.</dd> |
| 413 <dt><strong>undefined reference to ‘dlopen’ collect2: ld returned 1
exit status</strong></dt> | 414 <dt><strong>undefined reference to ‘dlopen’ collect2: ld returned 1
exit status</strong></dt> |
| 414 <dd>This is a linker ordering problem that usually results from improper orderin
g | 415 <dd>This is a linker ordering problem that usually results from improper orderin
g |
| 415 of command line flags when linking. Reconfigure your command line string to | 416 of command line flags when linking. Reconfigure your command line string to |
| 416 list libraries after the -o flag.</dd> | 417 list libraries after the -o flag.</dd> |
| 417 </dl> | 418 </dl> |
| 418 </section> | 419 </section> |
| 419 | 420 |
| 420 {{/partials.standard_nacl_article}} | 421 {{/partials.standard_nacl_article}} |
| OLD | NEW |