References need to be section relative.
authorJim Laskey <jlaskey@mac.com>
Mon, 19 Jun 2006 15:48:00 +0000 (15:48 +0000)
committerJim Laskey <jlaskey@mac.com>
Mon, 19 Jun 2006 15:48:00 +0000 (15:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28858 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfWriter.cpp

index b384b416a42639b42c23e8b1cc53d6d3e9a4c6ce..61697c634d6808fc63325afb9555c458021b6ad8 100644 (file)
@@ -2152,7 +2152,7 @@ void DwarfWriter::EmitDebugPubNames() {
       
       EmitInt16(DWARF_VERSION); EOL("DWARF Version");
       
-      EmitReference("info_begin", Unit->getID());
+      EmitDifference("info_begin", Unit->getID(), "section_info", 0);
       EOL("Offset of Compilation Unit Info");
 
       EmitDifference("info_end", Unit->getID(), "info_begin", Unit->getID());