-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
powerpc/iseries: Remove compiler version dependent hack
The creation of the flattened device tree depended on the compiler putting the constant strings for an object in a section with a particular name. This was changed with recent compilers. Do this explicitly instead. Without this patch, iseries kernels may silently not boot when built with some compilers. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
- Loading branch information
Stephen Rothwell
authored and
Benjamin Herrenschmidt
committed
Oct 27, 2009
1 parent
7abb840
commit 171fb12
Showing
2 changed files
with
25 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
EXTRA_CFLAGS += -mno-minimal-toc | ||
|
||
extra-y += dt.o | ||
|
||
obj-y += exception.o | ||
obj-y += hvlog.o hvlpconfig.o lpardata.o setup.o dt_mod.o mf.o lpevents.o \ | ||
obj-y += hvlog.o hvlpconfig.o lpardata.o setup.o dt.o mf.o lpevents.o \ | ||
hvcall.o proc.o htab.o iommu.o misc.o irq.o | ||
obj-$(CONFIG_PCI) += pci.o | ||
obj-$(CONFIG_SMP) += smp.o | ||
obj-$(CONFIG_VIOPATH) += viopath.o vio.o | ||
obj-$(CONFIG_MODULES) += ksyms.o | ||
|
||
quiet_cmd_dt_strings = DT_STR $@ | ||
cmd_dt_strings = $(OBJCOPY) --rename-section .rodata.str1.8=.dt_strings \ | ||
$< $@ | ||
|
||
$(obj)/dt_mod.o: $(obj)/dt.o | ||
$(call if_changed,dt_strings) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters