[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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 \
> > +           --rename-section=.data=.note.gnu.build-id -S $@.bin $@
> This should just rename to .note.  Notes other than build-id might be
> present.
> Is the specific name important for anything?

No. Well it can't be .rodata.note as I found out. Linker (mingw64)
ignores it for some oddball reason. Or maybe I messed up.

Anyhow I simplified it a bit since this objcopy effectivly squashes
all .note when handing it for EFI builds (but not for ELF). So made
it uniform across ARM and x86.

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.