1 --- a/arch/cris/boot/compressed/Makefile
2 +++ b/arch/cris/boot/compressed/Makefile
3 @@ -18,7 +18,7 @@ ldflags-y += -T $(srctree)/$(src)/decomp
4 OBJECTS-$(CONFIG_ETRAX_ARCH_V32) = $(obj)/head_v32.o
5 OBJECTS-$(CONFIG_ETRAX_ARCH_V10) = $(obj)/head_v10.o
6 OBJECTS= $(OBJECTS-y) $(obj)/misc.o
7 -OBJCOPYFLAGS = -O binary --remove-section=.bss
8 +#OBJCOPYFLAGS = -O binary --remove-section=.bss
10 quiet_cmd_image = BUILD $@
11 cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
12 --- a/arch/cris/boot/Makefile
13 +++ b/arch/cris/boot/Makefile
15 objcopyflags-$(CONFIG_ETRAX_ARCH_V10) += -R .note -R .comment
16 objcopyflags-$(CONFIG_ETRAX_ARCH_V32) += --remove-section=.bss
18 -OBJCOPYFLAGS = -O binary $(objcopyflags-y)
19 +#OBJCOPYFLAGS = -O binary $(objcopyflags-y)
22 subdir- := compressed rescue
23 @@ -17,7 +17,7 @@ $(obj)/Image: vmlinux FORCE
25 $(obj)/compressed/vmlinux: $(obj)/Image FORCE
26 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
27 - $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin
28 +# $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin
30 $(obj)/zImage: $(obj)/compressed/vmlinux
32 --- a/arch/cris/boot/rescue/Makefile
33 +++ b/arch/cris/boot/rescue/Makefile
34 @@ -14,7 +14,7 @@ arch-$(CONFIG_ETRAX_ARCH_V10) = v10
35 arch-$(CONFIG_ETRAX_ARCH_V32) = v32
37 ldflags-y += -T $(srctree)/$(src)/rescue_$(arch-y).lds
38 -OBJCOPYFLAGS = -O binary --remove-section=.bss
39 +#OBJCOPYFLAGS = -O binary --remove-section=.bss
40 obj-$(CONFIG_ETRAX_ARCH_V32) = $(obj)/head_v32.o
41 obj-$(CONFIG_ETRAX_ARCH_V10) = $(obj)/head_v10.o
43 --- a/arch/cris/Makefile
44 +++ b/arch/cris/Makefile
45 @@ -40,7 +40,7 @@ endif
47 LD = $(CROSS_COMPILE)ld -mcrislinux
49 -OBJCOPYFLAGS := -O binary -R .note -R .comment -S
50 +OBJCOPYFLAGS := -O binary -R .bss -R .note -R .note.gnu.build-id -R .comment -S
52 KBUILD_AFLAGS += -mlinux -march=$(arch-y) $(inc)
53 KBUILD_CFLAGS += -mlinux -march=$(arch-y) -pipe $(inc)