mbox series

[v3,0/3] x86/boot: Fix build with LLVM toolchain

Message ID 20241106130620.1928109-1-frediano.ziglio@cloud.com (mailing list archive)
Headers show
Series x86/boot: Fix build with LLVM toolchain | expand

Message

Frediano Ziglio Nov. 6, 2024, 1:06 p.m. UTC
Fix some compatibility generating 32 bit code.
LLVM has different object files and map files.
Do not use map file as they are not standard.

Changes since v1:
- do not use map files;
- add a fix for file names and preprocessor definition name.

Changes since v2:
- address comments.

Frediano Ziglio (3):
  x86/boot: Fix intermediate file names to generate 32 bit code
  x86/boot: Uses nm command instead of map file to get symbols
  x86/boot: Explicitly list .{sym,shstr,str}tab in build32.lds.S

 xen/arch/x86/boot/Makefile        |  9 +++++----
 xen/arch/x86/boot/build32.lds.S   | 11 ++++++++++-
 xen/tools/combine_two_binaries.py | 19 ++++++++++++-------
 3 files changed, 27 insertions(+), 12 deletions(-)