[llvm-bugs] [Bug 29093] New: version script does not support [chars] wildcards

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 22 09:57:30 PDT 2016


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

            Bug ID: 29093
           Summary: version script does not support [chars] wildcards
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: emaste at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

GNU ld supports [chars] wildcards in version scripts, to match a single
instance of any of the chars. I encountered this on FreeBSD building GNU
libstdc++ (which is not used in the base system on x86-64, but is on MIPS). A -
may be used to specify a range of characters (e.g. [a-z]) and ^ inverts the
sense (so any character not in the set, e.g. [^a-z]).

Here is an excerpt from libstdc++'s version script in FreeBSD:

    extern "C++"
    {
...
      std::locale::_[T-Za-z]*;                                                 
#     std::[A-Zm-r]*;                                                          
      std::[A-Zm]*;                                                            
      std::n[^u]*;                                                             
      std::nu[^m]*;                                                            
      std::num[^e]*;                                                           
...
    }

-- 
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/20160822/1a11aa0a/attachment.html>


More information about the llvm-bugs mailing list