Page MenuHomeFreeBSD

xen-locore: Silence DWARF2 section warning
ClosedPublic

Authored by cem on Apr 12 2020, 6:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 10:20 PM
Unknown Object (File)
Dec 22 2023, 11:15 PM
Unknown Object (File)
Sep 6 2023, 7:28 PM
Unknown Object (File)
Sep 6 2023, 7:27 PM
Unknown Object (File)
Sep 6 2023, 7:27 PM
Unknown Object (File)
Sep 1 2023, 12:54 PM
Unknown Object (File)
Jun 26 2023, 11:24 AM
Unknown Object (File)
Jun 26 2023, 11:23 AM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30438
Build 28196: arc lint + arc unit