Re: [Xen-devel] [PATCH v6 17/24] build_id: Provide ld-embedded build-ids

2016-04-08 Thread Konrad Rzeszutek Wilk
On Fri, Apr 08, 2016 at 07:07:02PM +0100, Andrew Cooper wrote: > On 07/04/16 04:49, Konrad Rzeszutek Wilk wrote: > > > > +notes.o: $(TARGET)-syms > > + $(OBJCOPY) -O binary --only-section=.note $(BASEDIR)/xen-syms $@.bin > > + $(OBJCOPY) -I binary -O elf64-x86-64 -B i386:x86-64 \ > > +

Re: [Xen-devel] [PATCH v6 17/24] build_id: Provide ld-embedded build-ids

2016-04-08 Thread Andrew Cooper
On 07/04/16 04:49, Konrad Rzeszutek Wilk wrote: > > +notes.o: $(TARGET)-syms > + $(OBJCOPY) -O binary --only-section=.note $(BASEDIR)/xen-syms $@.bin > + $(OBJCOPY) -I binary -O elf64-x86-64 -B i386:x86-64 \ > + --rename-section=.data=.note.gnu.build-id -S $@.bin $@ This shou

Re: [Xen-devel] [PATCH v6 17/24] build_id: Provide ld-embedded build-ids

2016-04-08 Thread Julien Grall
Hi Konrad, On 07/04/16 04:49, Konrad Rzeszutek Wilk wrote: This patch enables the Elf to be built with the build-id and provide in the Xen hypervisor the code to extract it. One can also retrieve the value of the build-id by doing 'readelf -n xen-syms'. For EFI builds we re-use the same build-

[Xen-devel] [PATCH v6 17/24] build_id: Provide ld-embedded build-ids

2016-04-06 Thread Konrad Rzeszutek Wilk
This patch enables the Elf to be built with the build-id and provide in the Xen hypervisor the code to extract it. One can also retrieve the value of the build-id by doing 'readelf -n xen-syms'. For EFI builds we re-use the same build-id that the xen-syms was built with. The version of ld that f