[PATCH] Emit DWARF info for all code section in an assembly file

Oliver Stannard oliver.stannard at arm.com
Thu Jun 5 02:34:47 PDT 2014


Sorry, I let this patch slip off my radar, but I'm still interested in progressing it.

> So I don't see what using an offset gets us in this case versus using DW_AT_low_pc other than bit identical output to gas.

If I understand it correctly, you are suggesting using the DW_AT_low_pc as the base address for the first range, and a base address selection entry to set the base address of each subsequent range (each range covers one code section). This seems like unnecessary complexity for the sake of 4 bytes. Also, the size of the abbrev will be increased by adding DW_AT_low_pc, reducing the size difference.

http://reviews.llvm.org/D2697






More information about the llvm-commits mailing list