[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] x86: suppress duplicate symbol warnings for CONFIG_GCOV
There are quite a few of these, and as the option is a development one only, duplicate symbol names should not be an issue there. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- I wonder whether we shouldn't go further and suppress the duplicate symbol warnings also when !CONFIG_LIVEPATCH. --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -90,6 +90,9 @@ else all_symbols = endif +syms-warn-dup-y := --warn-dup +syms-warn-dup-$(CONFIG_GCOV) := + $(TARGET): $(TARGET)-syms $(efi-y) boot/mkelf32 ./boot/mkelf32 $(notes_phdrs) $(TARGET)-syms $(TARGET) 0x100000 \ `$(NM) $(TARGET)-syms | sed -ne 's/^\([^ ]*\) . __2M_rwdata_end$$/0x\1/p'` @@ -131,7 +134,7 @@ $(TARGET)-syms: prelink.o xen.lds $(BASE $(LD) $(LDFLAGS) -T xen.lds -N prelink.o $(build_id_linker) \ $(@D)/.$(@F).0.o -o $(@D)/.$(@F).1 $(NM) -pa --format=sysv $(@D)/.$(@F).1 \ - | $(BASEDIR)/tools/symbols $(all_symbols) --sysv --sort --warn-dup \ + | $(BASEDIR)/tools/symbols $(all_symbols) --sysv --sort $(syms-warn-dup-y) \ >$(@D)/.$(@F).1.S $(MAKE) -f $(BASEDIR)/Rules.mk $(@D)/.$(@F).1.o $(LD) $(LDFLAGS) -T xen.lds -N prelink.o $(build_id_linker) \ Attachment:
x86-gcov-no-warn-dup.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |