<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Linkmap CFString references should indicate the string they refer to."
   href="https://llvm.org/bugs/show_bug.cgi?id=30482">30482</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Linkmap CFString references should indicate the string they refer to.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>MachO
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dmaclach@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=17330" name="attach_17330" title="Source file for test">attachment 17330</a> <a href="attachment.cgi?id=17330&action=edit" title="Source file for test">[details]</a></span>
Source file for test

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
  @autoreleasepool {
      // insert code here...
      NSLog(@"Hello, World!");
  }
    return 0;
}



clang -o test main.m -framework Foundation -Xlinker -map -Xlinker map.txt

Inside map.txt there is the CFString reference
0x100001028     0x00000020      [  1] CFString
but it doesn't tell me what string it refers to (unlike the literal string
reference -> 0x100000FA2     0x0000000E      [  1] literal string: Hello,
World!)

I'm sure that older linkmaps used to provide this (somewhat proof:
<a href="http://lists.apple.com/archives/xcode-users/2010/Mar/msg00104.html">http://lists.apple.com/archives/xcode-users/2010/Mar/msg00104.html</a>)

This would make working with linkmaps much nicer.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>