]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
xen/link: Include .debug_str_offsets in DWARF2_DEBUG_SECTIONS
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Apr 2025 11:30:19 +0000 (12:30 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 28 Apr 2025 18:46:46 +0000 (19:46 +0100)
commita88b99300aedea103884b4ef8c66a5a94206feb5
tree4a26d32221d946154fd386e8faa7c8915d6678ca
parent8dbd9966f82f95b017f06e9397fc78064b688d61
xen/link: Include .debug_str_offsets in DWARF2_DEBUG_SECTIONS

Building Xen with Clang-17 yields the following warning:

  ld: warning: orphan section `.debug_str_offsets' from `prelink.o' being placed in section `.debug_str_offsets'
  ld: ./.xen.efi.0xffff82d040000000.0:/4: section below image base
  ld: ./.xen.efi.0xffff82d040000000.1:/4: section below image base
  ld: warning: orphan section `.debug_str_offsets' from `prelink.o' being placed in section `.debug_str_offsets'
  ld: xen.efi:/4: section below image base

Set the alignment to 4 as it holds 4-byte values, despite the fact that Clang
appears to only use 1.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/include/xen/xen.lds.h