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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to