From: Jan Beulich <jbeulich@suse.com>
To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Julien Grall" <julien@xen.org>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Anthony PERARD" <anthony.perard@vates.tech>,
"Michal Orzel" <michal.orzel@amd.com>,
"Roger Pau Monné" <roger@xenproject.org>
Subject: [PATCH v2 6/7] build: move $(compare-symbol-tables)
Date: Wed, 26 Aug 2026 14:03:26 +0200 [thread overview]
Message-ID: <f569f2ea-cf1f-4e28-8097-f81397368e73@suse.com> (raw)
In-Reply-To: <9a78fdea-08ba-4e04-bfa1-ba09730a300b@suse.com>
With the final linking logic now consolidated in scripts/Makefile.link,
$(compare-symbol-tables) also doesn't need setting anymore in
Kbuild.include.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
v2: New.
--- a/xen/scripts/Kbuild.include
+++ b/xen/scripts/Kbuild.include
@@ -56,19 +56,6 @@ define filechk
fi
endef
-###
-# Compare the symbol tables of two object files. As diff's -I option isn't
-# standardized, the name difference of the two object files needs abstracting
-# out.
-define compare-symbol-tables
- ln -f $(1) $(@D)/.cst.$$$$; \
- $(OBJDUMP) -t $(@D)/.cst.$$$$ > $(1).sym; \
- ln -f $(2) $(@D)/.cst.$$$$; \
- $(OBJDUMP) -t $(@D)/.cst.$$$$ > $(2).sym; \
- rm -f $(@D)/.cst.$$$$; \
- diff -u $(1).sym $(2).sym
-endef
-
# as-insn: Check whether assembler supports an instruction.
# Usage: cflags-y += $(call as-insn,CC FLAGS,"insn",option-yes,option-no)
as-insn = $(if $(shell echo 'void _(void) { asm volatile ( $(2) ); }' \
--- a/xen/scripts/Makefile.link
+++ b/xen/scripts/Makefile.link
@@ -33,6 +33,18 @@ final-image-check-y ?= true
$(if $(filter $(LAST_LINKING_PASS),$*), $(syms-warn-dup-y)) \
> $@
+# Compare the symbol tables of two object files. As diff's -I option isn't
+# standardized, the name difference of the two object files needs abstracting
+# out.
+define compare-symbol-tables
+ ln -f $(1) $(@D)/.cst.$$$$; \
+ $(OBJDUMP) -t $(@D)/.cst.$$$$ > $(1).sym; \
+ ln -f $(2) $(@D)/.cst.$$$$; \
+ $(OBJDUMP) -t $(@D)/.cst.$$$$ > $(2).sym; \
+ rm -f $(@D)/.cst.$$$$; \
+ diff -u $(1).sym $(2).sym
+endef
+
.$(TARGET)-syms.%: $(objtree)/prelink.o .$(TARGET)-syms.%.o $(obj)/xen.lds
$(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $(filter %.o,$^) \
$(build_id_linker) --strip-debug -o $@
next prev parent reply other threads:[~2026-08-26 12:03 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-26 11:57 [PATCH v2 0/7] build: split and unify linking of final image(s) Jan Beulich
2026-08-26 12:00 ` [PATCH v2 1/7] x86: split xen-syms/xen.efi linking rules Jan Beulich
2026-09-02 14:52 ` Anthony PERARD
2026-09-03 7:26 ` Jan Beulich
2026-08-26 12:00 ` [PATCH v2 2/7] Arm: split xen-syms linking rule Jan Beulich
2026-09-02 16:32 ` Anthony PERARD
2026-09-03 7:35 ` Jan Beulich
2026-08-26 12:01 ` [PATCH v2 3/7] RISC-V: " Jan Beulich
2026-08-27 15:56 ` Oleksii Kurochko
2026-08-27 16:01 ` Jan Beulich
2026-08-27 16:12 ` Oleksii Kurochko
2026-08-26 12:01 ` [PATCH v2 4/7] PPC: " Jan Beulich
2026-09-03 11:50 ` Anthony PERARD
2026-08-26 12:02 ` [PATCH v2 5/7] build: move $(all-symbols-*) Jan Beulich
2026-09-03 11:54 ` Anthony PERARD
2026-08-26 12:03 ` Jan Beulich [this message]
2026-09-03 11:55 ` [PATCH v2 6/7] build: move $(compare-symbol-tables) Anthony PERARD
2026-08-26 12:04 ` [PATCH v2 7/7] RISC-V: place .sdata / .srodata / .riscv.attributes Jan Beulich
2026-08-27 15:40 ` Oleksii Kurochko
2026-08-27 15:53 ` Andrew Cooper
2026-08-27 15:56 ` Jan Beulich
2026-08-27 16:07 ` Oleksii Kurochko
2026-09-01 7:52 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f569f2ea-cf1f-4e28-8097-f81397368e73@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=roger@xenproject.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.