[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/9790] LD's "export everything" logic problematic

From: d dot g dot gorbachev at gmail dot com
Subject: [Bug ld/9790] LD's "export everything" logic problematic
Date: 3 Oct 2009 00:28:52 -0000

------- Additional Comments From d dot g dot gorbachev at gmail dot com  
2009-10-03 00:28 -------
Created an attachment (id=4249)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4249&action=view)

This patch adds a new `--exclude-all-symbols' option. It does not affect the
existing behavior, thus more chances that it will be accepted. Both
`--export-all-symbols' and `--exclude-all-symbols' are needed, because it's a
3-way choice -- export everything, export nothing, and export something. When
these options are used together, `--exclude-all-symbols' takes precedence.

By the way, the description of auto-export behavior is not quite correct:

> If `--export-all-symbols' is not given explicitly on the
> command line, then the default auto-export behavior will be
> _disabled_ if either of the following are true:
>    * A DEF file is used.

> Using a DEF file turns off the normal auto-export behavior,
> unless the `--export-all-symbols' option is also used.

In reality, if a DEF file does not export any symbols, using it does not turn
auto-export off. (Having no talent of speaking, I do not dare to change the

Another way to fix this problem would be to modify the auto-export behavior in
accordance with the existing documentation.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]