> On Aug 5, 2019, at 11:11 AM, <paul.robin...@sony.com> > <paul.robin...@sony.com> wrote: > >> I also tried to obj2yaml the good DWARF and change it, but once you >> add bytes all of the section sizes and offsets are off so that was >> not very fruitful, so I ran into errors when trying to convert the >> yaml back to and ELF file. >> >> Greg > > Yet another case where a "DWARF assembler" would be useful.
Yeah, that is why I made the DWARFGenerator class in llvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp so I can hand craft DWARF where I can change offsets and move stuff around. It doesn't create an ELF file with section contents for .text or anything though. > --paulr > _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits