Mailing List Archive

[xen master] tools/binfile: switch to common annotations model
commit 4900c939cb9b876c51cfc7a4c854f54c722a30b5
Author: Jan Beulich <jbeulich@suse.com>
AuthorDate: Mon Jan 22 13:55:38 2024 +0100
Commit: Jan Beulich <jbeulich@suse.com>
CommitDate: Mon Jan 22 13:55:38 2024 +0100

tools/binfile: switch to common annotations model

Use DATA() / END() and drop the now redundant .global. No change in
generated data; of course the two symbols now properly gain "hidden"
binding.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
---
xen/tools/binfile | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/xen/tools/binfile b/xen/tools/binfile
index 23099c49bf..099d7eda9a 100755
--- a/xen/tools/binfile
+++ b/xen/tools/binfile
@@ -29,15 +29,10 @@ cat <<EOF >$target

.section $section.rodata, "a", %progbits

- .p2align $align
- .global $varname
-$varname:
+DATA($varname, 1 << $align)
.incbin "$binsource"
.Lend:
+END($varname)

- .type $varname, %object
- .size $varname, .Lend - $varname
-
- .global ${varname}_size
ASM_INT(${varname}_size, .Lend - $varname)
EOF
--
generated by git-patchbot for /home/xen/git/xen.git#master