[PATCH] [lld][ELF] Fix debug info handling.

Michael Spencer bigcheesegs at gmail.com
Fri Sep 13 14:25:20 PDT 2013


Hi shankarke, kledzik,

The debugger expects all relocations in debug sections to be resolved
relative to the start of the section the relocation refers to. In order
to do this, we ensure that debug sections get a virtual address of 0.

This adds a new typeDebug to represent this.


http://llvm-reviews.chandlerc.com/D1680

Files:
  include/lld/Core/DefinedAtom.h
  lib/Core/DefinedAtom.cpp
  lib/ReaderWriter/ELF/Atoms.h
  lib/ReaderWriter/ELF/DefaultLayout.h
  lib/ReaderWriter/ELF/SectionChunks.h
  lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
  test/elf/Inputs/debug.c
  test/elf/Inputs/debug.x86-64
  test/elf/debug.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1680.1.patch
Type: text/x-patch
Size: 5866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130913/5787ddfc/attachment.bin>


More information about the llvm-commits mailing list