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>
master commit: a88b99300a
master date: 2025-04-28 19:46:46 +0100
This commit is contained in:
Andrew Cooper authored and Jan Beulich committed 2025-05-13 14:00:26 +02:00
1 parent 96b9bb0afd
commit 545f2d528c
1 file changed
+1
+1
View File
@@ -40,6 +40,7 @@
DECL_DEBUG2(.debug_info, .gnu.linkonce.wi.*, 1) \
DECL_DEBUG(.debug_types, 1) \
DECL_DEBUG(.debug_str, 1) \
DECL_DEBUG(.debug_str_offsets, 4) \
DECL_DEBUG2(.debug_line, .debug_line.*, 1) \
DECL_DEBUG(.debug_line_str, 1) \
DECL_DEBUG(.debug_names, 4) \
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.