Update tutorial-ubuntu-16.04.md

This commit is contained in:
Ian A Mason 2018-08-06 09:59:07 -07:00 committed by GitHub
parent 3de212139a
commit b94c551e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,4 +147,12 @@ See [here](http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html) fo
```
-Wl,--export-dynamic
```
incantation.
incantation. The salient point being
```
"In some cases, the call to gcc to create the object file will also need to include the option
'-Wl,-export-dynamic'. Normally, the dynamic symbol table contains only symbols which
are used by a dynamic object. This option (when creating an ELF file) adds all symbols to the
dynamic symbol table (see ld(1) for more information). You need to use this option when there are
'reverse dependencies', i.e., a DL library has unresolved symbols that by convention must be
defined in the programs that intend to load these libraries."
```