Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #55244

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

From Helge Deller <deller@gmx.de>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#837588: vmlinux in linux-image packages is unstripped
Date 2016-09-27 23:20 +0200
Message-ID <sm7Xb-6ec-13@gated-at.bofh.it> (permalink)
References (5 earlier) <skhR0-1Z0-35@gated-at.bofh.it> <sklUC-4sl-5@gated-at.bofh.it> <skpER-6Qd-1@gated-at.bofh.it> <sm09j-1bo-5@gated-at.bofh.it> <sm5Vn-4Z0-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#837588: hppa: Please disable CONFIG_FTRACE for hppa architecture Helge Deller <deller@gmx.de> - 2016-09-12 18:30 +0200
  Bug#837588: hppa: Please disable CONFIG_FTRACE for hppa architecture Ben Hutchings <ben@decadent.org.uk> - 2016-09-12 21:40 +0200
    Bug#837588: hppa: Please disable CONFIG_FTRACE for hppa architecture Ben Hutchings <ben@decadent.org.uk> - 2016-09-19 19:50 +0200
      Bug#837588: hppa: Please disable CONFIG_FTRACE for hppa architecture Helge Deller <deller@gmx.de> - 2016-09-19 21:00 +0200
        Bug#837588: hppa: Please disable CONFIG_FTRACE for hppa architecture Ben Hutchings <ben@decadent.org.uk> - 2016-09-19 21:10 +0200
          Bug#837588: hppa: Please disable CONFIG_FTRACE for hppa architecture Helge Deller <deller@gmx.de> - 2016-09-22 21:30 +0200
            Bug#837588: hppa: Please disable CONFIG_FTRACE for hppa architecture Ben Hutchings <ben@decadent.org.uk> - 2016-09-23 01:50 +0200
              Bug#837588: vmlinux in linux-image packages is unstripped Ben Hutchings <ben@decadent.org.uk> - 2016-09-23 05:50 +0200
                Bug#837588: vmlinux in linux-image packages is unstripped Helge Deller <deller@gmx.de> - 2016-09-27 15:00 +0200
                Bug#837588: vmlinux in linux-image packages is unstripped Ben Hutchings <ben@decadent.org.uk> - 2016-09-27 21:10 +0200
                Bug#837588: vmlinux in linux-image packages is unstripped Helge Deller <deller@gmx.de> - 2016-09-27 23:20 +0200
                Bug#837588: vmlinux in linux-image packages is unstripped Ben Hutchings <ben@decadent.org.uk> - 2016-09-30 23:30 +0200
                Bug#837588: vmlinux in linux-image packages is unstripped Helge Deller <deller@gmx.de> - 2016-10-01 22:30 +0200
  Processed: Re: Bug#837588: hppa: Please disable CONFIG_FTRACE for  hppa architecture owner@bugs.debian.org (Debian Bug Tracking System) - 2016-09-12 21:40 +0200
  Processed: Re: Bug#837588: hppa: Please disable CONFIG_FTRACE for  hppa architecture owner@bugs.debian.org (Debian Bug Tracking System) - 2016-09-23 01:50 +0200

csiph-web