Author: cem
Date: Fri Apr 17 20:20:03 2020
New Revision: 360054
URL: https://svnweb.freebsd.org/changeset/base/360054

Log:
  xen-locore: Silence DWARF2 section warning
  
  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).
  
  Reviewed by:  royger
  Differential Revision:        https://reviews.freebsd.org/D24384

Modified:
  head/sys/conf/files.amd64

Modified: head/sys/conf/files.amd64
==============================================================================
--- head/sys/conf/files.amd64   Fri Apr 17 19:14:05 2020        (r360053)
+++ head/sys/conf/files.amd64   Fri Apr 17 20:20:03 2020        (r360054)
@@ -112,7 +112,8 @@ amd64/amd64/in_cksum.c              optional        inet | 
inet6
 amd64/amd64/initcpu.c          standard
 amd64/amd64/io.c               optional        io
 amd64/amd64/locore.S           standard        no-obj
-amd64/amd64/xen-locore.S       optional        xenhvm
+amd64/amd64/xen-locore.S       optional        xenhvm \
+       compile-with "${NORMAL_S} -g0"
 amd64/amd64/machdep.c          standard
 amd64/amd64/mem.c              optional        mem
 amd64/amd64/minidump_machdep.c standard
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to