[LLVMbugs] [Bug 23365] New: clang should not throw away #ident directives

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 28 02:58:34 PDT 2015


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

            Bug ID: 23365
           Summary: clang should not throw away #ident directives
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: fuzxxl at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang seems to throw away #ident directives without actually adding an
identification to the object file. #ident directives are useful for adding
version or copyright information to binaries and their usage is widespread
through the *BSD and Solaris code bases.

It would be great if clang could support #ident directives. The implementation
boils down to turning a directive in C or C++ source code of the form

    #ident "something"

into assembly of the form

    .ident "something"

on ELF targets at least, although the gas manual suggests that this directive
does something to a similar effect on other platforms as well. The general
mechanism to emit such assembly directives seems to exist already as clang is
able to emit a compiler identification string as an ident assembly directive.

-- 
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/20150428/d6ba64d9/attachment.html>


More information about the llvm-bugs mailing list