Makefile (34cc1a8fe0d3f89f3602b49f1121a99d2bfc5efc) Makefile (8d7e4cc2c8ea1d180d32d902eb899f27d3ee53d7)
1#
2# linux/arch/arm/boot/compressed/Makefile
3#
4# create a compressed vmlinuz image from the original vmlinux
5#
6
7OBJS =
8

--- 106 unchanged lines hidden (view full) ---

115LDFLAGS_vmlinux += -T
116
117# For __aeabi_uidivmod
118lib1funcs = $(obj)/lib1funcs.o
119
120$(obj)/lib1funcs.S: $(srctree)/arch/$(SRCARCH)/lib/lib1funcs.S FORCE
121 $(call cmd,shipped)
122
1#
2# linux/arch/arm/boot/compressed/Makefile
3#
4# create a compressed vmlinuz image from the original vmlinux
5#
6
7OBJS =
8

--- 106 unchanged lines hidden (view full) ---

115LDFLAGS_vmlinux += -T
116
117# For __aeabi_uidivmod
118lib1funcs = $(obj)/lib1funcs.o
119
120$(obj)/lib1funcs.S: $(srctree)/arch/$(SRCARCH)/lib/lib1funcs.S FORCE
121 $(call cmd,shipped)
122
123# We need to prevent any GOTOFF relocs being used with references
124# to symbols in the .bss section since we cannot relocate them
125# independently from the rest at run time. This can be achieved by
126# ensuring that no private .bss symbols exist, as global symbols
127# always have a GOT entry which is what we need.
128# The .data section is already discarded by the linker script so no need
129# to bother about it here.
130check_for_bad_syms = \
131bad_syms=$$($(CROSS_COMPILE)nm $@ | sed -n 's/^.\{8\} [bc] \(.*\)/\1/p') && \
132[ -z "$$bad_syms" ] || \
133 ( echo "following symbols must have non local/private scope:" >&2; \
134 echo "$$bad_syms" >&2; rm -f $@; false )
135
123$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.$(suffix_y).o \
124 $(addprefix $(obj)/, $(OBJS)) $(lib1funcs) FORCE
125 $(call if_changed,ld)
136$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.$(suffix_y).o \
137 $(addprefix $(obj)/, $(OBJS)) $(lib1funcs) FORCE
138 $(call if_changed,ld)
126 @:
139 @$(check_for_bad_syms)
127
128$(obj)/piggy.$(suffix_y): $(obj)/../Image FORCE
129 $(call if_changed,$(suffix_y))
130
131$(obj)/piggy.$(suffix_y).o: $(obj)/piggy.$(suffix_y) FORCE
132
133CFLAGS_font.o := -Dstatic=
134
135$(obj)/font.c: $(FONTC)
136 $(call cmd,shipped)
137
138$(obj)/vmlinux.lds: $(obj)/vmlinux.lds.in arch/arm/boot/Makefile $(KCONFIG_CONFIG)
139 @sed "$(SEDFLAGS)" < $< > $@
140
141$(obj)/piggy.$(suffix_y): $(obj)/../Image FORCE
142 $(call if_changed,$(suffix_y))
143
144$(obj)/piggy.$(suffix_y).o: $(obj)/piggy.$(suffix_y) FORCE
145
146CFLAGS_font.o := -Dstatic=
147
148$(obj)/font.c: $(FONTC)
149 $(call cmd,shipped)
150
151$(obj)/vmlinux.lds: $(obj)/vmlinux.lds.in arch/arm/boot/Makefile $(KCONFIG_CONFIG)
152 @sed "$(SEDFLAGS)" < $< > $@