Messages in this thread | | | Date | Tue, 24 Nov 2020 11:46:13 -0600 | From | Segher Boessenkool <> | Subject | Re: [PATCH v2 3/4] Kbuild: make DWARF version a choice |
| |
On Tue, Nov 24, 2020 at 11:56:02AM -0500, Arvind Sankar wrote: > On Mon, Nov 23, 2020 at 06:33:57PM -0600, Segher Boessenkool wrote: > > On Mon, Nov 23, 2020 at 06:22:10PM -0500, Arvind Sankar wrote: > > > Btw, is -gsplit-dwarf at all useful for assembler files? > > > > If you invoke the assembler via the compiler, with that flag it still > > creates separate .o and .dwo files (via objcopy invocations as usual). > > Whether that is useful depends on if you have any debug info that can > > be split :-) > > Right, the latter was what I was really asking :) We don't currently > pass -gsplit-dwarf for assembler and I was wondering if that mattered.
If there is any debug info in the .s files, it will all end up in the .o file, not a .dwo file. That may matter aesthetically, and it can cost a few bytes of disk space, but it doesn't matter functionally (GDB will search in both places).
Segher
| |