Skip to contentSkip to conversation

non-x86/symbols: check table sizes don't change between linking passes 2 and 3

PATCH In review Jan Beulich 4 participants 5 messages Feb 2 – Feb 10 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 non-x86/symbols: check table sizes don't change between linking passes 2 and 3

Extend commit 1df11ccceb1a ("symbols: check table sizes don't change between linking passes 2 and 3") to other ports as well.

xen/arch/arm/Makefile +1 -0
@@ -99,6 +99,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
 		| $(objtree)/tools/symbols $(all_symbols) --sysv --sort \
 		> $(dot-target).2.S
 	$(MAKE) $(build)=$(@D) $(dot-target).2.o
+	$(call compare-symbol-tables, $(dot-target).1.o, $(dot-target).2.o)
 	$(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< $(build_id_linker) \
 	    $(dot-target).2.o -o $@
 	$(NM) -pa --format=sysv $@ \
xen/arch/ppc/Makefile +1 -0
@@ -26,6 +26,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
 		| $(objtree)/tools/symbols $(all_symbols) --sysv --sort \
 		> $(dot-target).2.S
 	$(MAKE) $(build)=$(@D) $(dot-target).2.o
+	$(call compare-symbol-tables, $(dot-target).1.o, $(dot-target).2.o)
 	$(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< $(build_id_linker) \
 	    $(dot-target).2.o -o $@
 	$(NM) -pa --format=sysv $@ \
xen/arch/riscv/Makefile +1 -0
@@ -40,6 +40,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
 		| $(objtree)/tools/symbols $(all_symbols) --sysv --sort \
 		> $(dot-target).2.S
 	$(MAKE) $(build)=$(@D) $(dot-target).2.o
+	$(call compare-symbol-tables, $(dot-target).1.o, $(dot-target).2.o)
 	$(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< $(build_id_linker) \
 	    $(dot-target).2.o -o $@
 	$(NM) -pa --format=sysv $@ \
Acked-by on v1 1/1
#1 lore raw

Hi Jan,

I checked that xen on arm is still compiling properly with that so

Quoted 6 lines · Jan Beulich

Extend commit 1df11ccceb1a ("symbols: check table sizes don't change between linking passes 2 and 3") to other ports as well.

For Arm:

Cheers
Bertrand

Quoted 31 lines
xen/arch/arm/Makefile +0 -0
@@ -99,6 +99,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
 | $(objtree)/tools/symbols $(all_symbols) --sysv --sort \
Quoted 1 line

$(dot-target).2.S

$(MAKE) $(build)=$(@D) $(dot-target).2.o
+ $(call compare-symbol-tables, $(dot-target).1.o, $(dot-target).2.o)

$(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< $(build_id_linker) \
   $(dot-target).2.o -o $@

$(NM) -pa --format=sysv $@ \

xen/arch/ppc/Makefile +0 -0
@@ -26,6 +26,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
 | $(objtree)/tools/symbols $(all_symbols) --sysv --sort \
Quoted 1 line

$(dot-target).2.S

$(MAKE) $(build)=$(@D) $(dot-target).2.o
+ $(call compare-symbol-tables, $(dot-target).1.o, $(dot-target).2.o)

$(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< $(build_id_linker) \
   $(dot-target).2.o -o $@

$(NM) -pa --format=sysv $@ \

xen/arch/riscv/Makefile +0 -0
@@ -40,6 +40,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
 | $(objtree)/tools/symbols $(all_symbols) --sysv --sort \
Quoted 1 line

$(dot-target).2.S

$(MAKE) $(build)=$(@D) $(dot-target).2.o
+ $(call compare-symbol-tables, $(dot-target).1.o, $(dot-target).2.o)

$(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< $(build_id_linker) \
   $(dot-target).2.o -o $@

$(NM) -pa --format=sysv $@ \

#3 lore raw
Quoted 7 lines · Roger Pau Monné
Quoted 4 lines · Jan Beulich

Extend commit 1df11ccceb1a ("symbols: check table sizes don't change between linking passes 2 and 3") to other ports as well.

Thanks.

Quoted 1 line

Do you know whether the risc/ppc builds in the CI are OK after this?

Not yet, the pre-push testing will show. They are okay in my local builds.

Jan

Reviewed-by on v1 1/1
#4 lore raw
In reply to Jan Beulich
Quoted 28 lines · Jan Beulich

Extend commit 1df11ccceb1a ("symbols: check table sizes don't change between linking passes 2 and 3") to other ports as well.

xen/arch/arm/Makefile +1 -0
@@ -99,6 +99,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
  		| $(objtree)/tools/symbols $(all_symbols) --sysv --sort \
  		> $(dot-target).2.S
  	$(MAKE) $(build)=$(@D) $(dot-target).2.o
+	$(call compare-symbol-tables, $(dot-target).1.o, $(dot-target).2.o)
  	$(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< $(build_id_linker) \
  	    $(dot-target).2.o -o $@
  	$(NM) -pa --format=sysv $@ \
xen/arch/ppc/Makefile +1 -0
@@ -26,6 +26,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
  		| $(objtree)/tools/symbols $(all_symbols) --sysv --sort \
  		> $(dot-target).2.S
  	$(MAKE) $(build)=$(@D) $(dot-target).2.o
+	$(call compare-symbol-tables, $(dot-target).1.o, $(dot-target).2.o)
  	$(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< $(build_id_linker) \
  	    $(dot-target).2.o -o $@
  	$(NM) -pa --format=sysv $@ \

xen/arch/riscv/Makefile $(TARGET)-syms: $(objtree)/prelink.o $(o · line 46

Quoted 7 lines
xen/arch/riscv/Makefile +1 -0
@@ -40,6 +40,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
  		| $(objtree)/tools/symbols $(all_symbols) --sysv --sort \
  		> $(dot-target).2.S
  	$(MAKE) $(build)=$(@D) $(dot-target).2.o
+	$(call compare-symbol-tables, $(dot-target).1.o, $(dot-target).2.o)
  	$(LD) $(XEN_LDFLAGS) -T $(obj)/xen.lds $< $(build_id_linker) \
  	    $(dot-target).2.o -o $@
  	$(NM) -pa --format=sysv $@ \

Thanks.

~ Oleksii