[llvm-bugs] [Bug 32573] New: -dynamic-list should not override -export-dynamic

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 7 15:29:36 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32573

            Bug ID: 32573
           Summary: -dynamic-list should not override -export-dynamic
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: eugeni.stepanov at gmail.com
                CC: llvm-bugs at lists.llvm.org

When both -dynamic-list and -export-dynamic are specified on the command line,
-dynamic-list wins.

In the same test with gold, -export-dynamic wins.

Gold behavior is more consistent, especially considering that multiple
-dynamic-list flags are additive (i.e. they export the union of the symbol
sets). Export-dynamic is effectively a -dynamic-list with "*;" and it should
override any other -dynamic-list flag.

This matter for sanitizers, where clang frontend may add a -dynamic-list flag
for the symbols in the sanitizer static runtime library. Currently, this flag
disables a user-specified -rdynamic.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170407/b7aa74e3/attachment.html>


More information about the llvm-bugs mailing list