Page MenuHomeFreeBSD

xen-locore: Silence DWARF2 section warning
ClosedPublic

Authored by cem on Apr 12 2020, 6:40 PM.
Tags
None
Referenced Files
F103235292: D24384.id.diff
Fri, Nov 22, 12:12 PM
Unknown Object (File)
Tue, Nov 19, 12:08 PM
Unknown Object (File)
Tue, Nov 19, 6:17 AM
Unknown Object (File)
Mon, Nov 18, 9:41 PM
Unknown Object (File)
Mon, Nov 18, 6:16 PM
Unknown Object (File)
Sat, Nov 16, 7:49 AM
Unknown Object (File)
Wed, Nov 13, 11:18 AM
Unknown Object (File)
Wed, Oct 30, 6:38 PM
Subscribers

Details

Summary

Silence the "DWARF2 can only represent one section per compilation unit"
warning in amd64 GENERIC builds by disabling Clang's debuginfo generation for
this assembler file (-g0). The message is replaced by a warning from
ctfconvert that there is no debuginfo to convert (future work).

The file contains some metadata (several ELF notes) and some code. The code
does not appear to have anything that debuginfo would aid.

I looked at the generated debuginfo (readelf -w xen-locore.o) prior to this
change, and the metadata that would be disabled are things like associated
between binary offset and code line number (not especially useful with a
disassembler), and label metadata for the entry points (not especially useful
as this is already in the symbol table).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable