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

Bug#837588: vmlinux in linux-image packages is unstripped



Hi Ben,

On 27.09.2016 21:07, Ben Hutchings wrote:
> On Tue, 2016-09-27 at 14:48 +0200, Helge Deller wrote:
>> On 23.09.2016 05:39, Ben Hutchings wrote:
>>>
>>> I pushed a fix to the sid branch which I've tested on a powerpc
>>> porterbox.
>>
>> The addition of 
>>  dh_strip --no-automatic-dbgsym
>>
>> broke the 64bit parisc/hppa kernel build:
> 
> That's strange, because it's not really an addition (we've always run
> dh_strip).
> 
> [...]
>> I'm currently testing this patch (not sure if this is a good patch though):
>> - dh_strip --no-automatic-dbgsym
>> + $(CROSS_COMPILE)strip --remove-section=.comment --remove-section=.note '$(DIR)/$(IMAGE_FILE)'
> 
> This is not correct because we do want to strip the userland tools that
> get included in powerpc builds.  We could add -Xvmlinux to the dh_strip
> command to make sure it doesn't touch the kernel.

Since the error is:
strip:debian/linux-image-4.7.0-1-parisc64-smp/boot/vmlinux-4.7.0-1-parisc64-smp: File format not recognized
I think you would need something like -X$(IMAGE_FILE)
 
> vmlinux is being stripped using $(CROSS_COMPILE)objcopy, but I wonder
> whether we should be using hppa64-linux-gnu-objcopy instead for the 64-
> bit kernel?

I think $(CROSS_COMPILE)objcopy expands to hppa64-linux-gnu-objcopy when packaging
the 64bit kernel. At least my patch worked which seems to indicate that.

Anyhow, I'm fine with any patch you agree on and which fixes the problem.

Helge

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: