]> xenbits.xensource.com Git - xen.git/commitdiff
tools/binfile: switch to common annotations model
authorJan Beulich <jbeulich@suse.com>
Mon, 22 Jan 2024 12:55:38 +0000 (13:55 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Jan 2024 12:55:38 +0000 (13:55 +0100)
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

index 23099c49bf4d35bd623dcfae3ad125060a670f3a..099d7eda9a1ee199ef61284bf6d8d75ecbc7bb0d 100755 (executable)
@@ -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