Re: [PATCH 1/7] ARM: disallow combining XIP and LTO

From: Nicolas Pitre
Date: Mon Mar 12 2018 - 13:05:38 EST


On Mon, 12 Mar 2018, Nicolas Pitre wrote:

> On Mon, 12 Mar 2018, Arnd Bergmann wrote:
>
> > arm-linux-gnueabi-nm: 'arch/arm/boot/compressed/../../../../vmlinux':
> > No such file
>
> That is weird. The Makefile has:
>
> cmd_mkxip = $(cmd_objcopy) && $(cmd_deflate_xip_data)
>
> $(obj)/xipImage: vmlinux FORCE
> $(call if_changed,mkxip)
>
> So the objcopy must succeed at producing vmlinux for deflate_xip_data
> (where nm is used) to be called.

Correction: vmlinux is a dependency not a product, so it must be there
for this rule to be executed, and it is input to both objcopy and nm.


Nicolas