| 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 topic" id="contents"> | 5 <div class="contents local" id="contents" style="display: none"> |
| 6 <ul class="small-gap"> | 6 <ul class="small-gap"> |
| 7 <li><p class="first"><a class="reference internal" href="#introduction" id="id1"
>Introduction</a></p> | 7 <li><p class="first"><a class="reference internal" href="#introduction" id="id1"
>Introduction</a></p> |
| 8 <ul class="small-gap"> | 8 <ul class="small-gap"> |
| 9 <li><a class="reference internal" href="#c-standard-libraries-glibc-and-newlib"
id="id2">C standard libraries: glibc and newlib</a></li> | 9 <li><a class="reference internal" href="#c-standard-libraries-glibc-and-newlib"
id="id2">C standard libraries: glibc and newlib</a></li> |
| 10 <li><a class="reference internal" href="#sdk-toolchains" id="id3">SDK toolchains
</a></li> | 10 <li><a class="reference internal" href="#sdk-toolchains" id="id3">SDK toolchains
</a></li> |
| 11 <li><a class="reference internal" href="#specifying-and-delivering-shared-librar
ies" id="id4">Specifying and delivering shared libraries</a></li> | 11 <li><a class="reference internal" href="#specifying-and-delivering-shared-librar
ies" id="id4">Specifying and delivering shared libraries</a></li> |
| 12 </ul> | 12 </ul> |
| 13 </li> | 13 </li> |
| 14 <li><a class="reference internal" href="#building-a-dynamically-linked-applicati
on" id="id5">Building a dynamically linked application</a></li> | 14 <li><a class="reference internal" href="#building-a-dynamically-linked-applicati
on" id="id5">Building a dynamically linked application</a></li> |
| 15 <li><a class="reference internal" href="#generating-a-native-client-manifest-fil
e-for-a-dynamically-linked-application" id="id6">Generating a Native Client mani
fest file for a dynamically linked application</a></li> | 15 <li><a class="reference internal" href="#generating-a-native-client-manifest-fil
e-for-a-dynamically-linked-application" id="id6">Generating a Native Client mani
fest file for a dynamically linked application</a></li> |
| 16 <li><a class="reference internal" href="#deploying-a-dynamically-linked-applicat
ion" id="id7">Deploying a dynamically linked application</a></li> | 16 <li><a class="reference internal" href="#deploying-a-dynamically-linked-applicat
ion" id="id7">Deploying a dynamically linked application</a></li> |
| 17 <li><a class="reference internal" href="#opening-a-shared-library-at-runtime" id
="id8">Opening a shared library at runtime</a></li> | 17 <li><a class="reference internal" href="#opening-a-shared-library-at-runtime" id
="id8">Opening a shared library at runtime</a></li> |
| 18 <li><a class="reference internal" href="#troubleshooting" id="id9">Troubleshooti
ng</a></li> | 18 <li><a class="reference internal" href="#troubleshooting" id="id9">Troubleshooti
ng</a></li> |
| 19 </ul> | 19 </ul> |
| 20 </div> | 20 |
| 21 <section id="introduction"> | 21 </div><section id="introduction"> |
| 22 <h2 id="introduction">Introduction</h2> | 22 <h2 id="introduction">Introduction</h2> |
| 23 <aside class="caution"> | 23 <aside class="caution"> |
| 24 Portable Native Client currently only supports static linking, and the | 24 Portable Native Client currently only supports static linking, and the |
| 25 only C library available for it is newlib. This page is only valid for | 25 only C library available for it is newlib. This page is only valid for |
| 26 Native Client, though PNaCl will eventually support some form of | 26 Native Client, though PNaCl will eventually support some form of |
| 27 dynamic linking. | 27 dynamic linking. |
| 28 </aside> | 28 </aside> |
| 29 <p>This document describes how to create and deploy dynamically linked and loade
d | 29 <p>This document describes how to create and deploy dynamically linked and loade
d |
| 30 applications with the glibc library in the Native Client SDK. Before reading | 30 applications with the glibc library in the Native Client SDK. Before reading |
| 31 this document, we recommend reading <a class="reference internal" href="/native-
client/devguide/devcycle/building.html"><em>Building Native Client Modules</em><
/a></p> | 31 this document, we recommend reading <a class="reference internal" href="/native-
client/devguide/devcycle/building.html"><em>Building Native Client Modules</em><
/a></p> |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 in the .nmf file – either the files are the wrong type or kind, or an | 414 in the .nmf file – either the files are the wrong type or kind, or an |
| 415 expected library is missing.</dd> | 415 expected library is missing.</dd> |
| 416 <dt><strong>undefined reference to ‘dlopen’ collect2: ld returned 1
exit status</strong></dt> | 416 <dt><strong>undefined reference to ‘dlopen’ collect2: ld returned 1
exit status</strong></dt> |
| 417 <dd>This is a linker ordering problem that usually results from improper orderin
g | 417 <dd>This is a linker ordering problem that usually results from improper orderin
g |
| 418 of command line flags when linking. Reconfigure your command line string to | 418 of command line flags when linking. Reconfigure your command line string to |
| 419 list libraries after the -o flag.</dd> | 419 list libraries after the -o flag.</dd> |
| 420 </dl> | 420 </dl> |
| 421 </section></section> | 421 </section></section> |
| 422 | 422 |
| 423 {{/partials.standard_nacl_article}} | 423 {{/partials.standard_nacl_article}} |
| OLD | NEW |