Thanks for your reply. Actually yes, I am looking at the dwarfGenerateDebugSyms function in dwarf.go in cmd/lin/internal/ld trying to understand how and when CUs are being generated and then added to dwarfp2 specially the header and length of each CU.
R, Mahdi On Mon, Feb 22, 2021 at 11:36 PM Ian Lance Taylor <i...@golang.org> wrote: > On Mon, Feb 22, 2021 at 12:59 PM m.hos...@gmail.com > <m.hosein...@gmail.com> wrote: > > > > I am experimenting with dwarf generation in Go1.15 at the moment and > looking into new loader module. I am trying to understand how the data > being generated and put into []byte specifically how the loader.payloads > item being generated. I couldn't figure it out yet. > > There is a LoadFull function in loader with works with payloads but I > have no idea what function and in what phase the raw data for each symbols > being created and added to payloads. I would appreciate if anyone could > help me in this regard. > > This code is different in 1.16. I recommend that you look at 1.16. > > Some DWARF information is generated at compile time and some is > generated at link time. Is there anything specific you are interested > in? > > Ian > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAP%3DptTKW0BVjd1gonVREMxSwGnHiSX%2ByungkbatmcfkmK1q0Dg%40mail.gmail.com.