non-x86/symbols: check table sizes don't change between linking passes 2 and 3
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 $@ \
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.Signed-off-by Jan Beulich <[email protected]>
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 $@ \
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.Signed-off-by Jan Beulich <[email protected]>
Do you know whether the risc/ppc builds in the CI are OK after this?
Thanks, Roger.
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.Signed-off-by Jan Beulich <[email protected]>Acked-by Roger Pau Monné <[email protected]>
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
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.Signed-off-by Jan Beulich <[email protected]>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