aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-11-01 17:32:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-11-01 17:32:43 -0400
commit90de1fb83e7c760aa403381f072486fc4e3e8b5f (patch)
treec1af1fedd74b49aba1d4904befb7a5eab6859108
parent2d6bb6adb714b133db92ccd4bfc9c20f75f71f3f (diff)
parent960b82c383d38fea4439e4182b5be4352a6048e2 (diff)
Merge tag 'xtensa-20181101' of git://github.com/jcmvbkbc/linux-xtensa
Pull Xtensa fixes and cleanups from Max Filippov: - use ZONE_NORMAL instead of ZONE_DMA - fix Image.elf build error caused by assignment of incorrect address to the .note.Linux section - clean up debug and property sections in the vmlinux.lds.S * tag 'xtensa-20181101' of git://github.com/jcmvbkbc/linux-xtensa: xtensa: clean up xtensa-specific property sections xtensa: use DWARF_DEBUG in the vmlinux.lds.S xtensa: add NOTES section to the linker script xtensa: remove ZONE_DMA
-rw-r--r--arch/xtensa/Kconfig3
-rw-r--r--arch/xtensa/boot/Makefile2
-rw-r--r--arch/xtensa/kernel/vmlinux.lds.S36
-rw-r--r--arch/xtensa/mm/init.c2
4 files changed, 7 insertions, 36 deletions
diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig
index 60c141af222b..d29b7365da8d 100644
--- a/arch/xtensa/Kconfig
+++ b/arch/xtensa/Kconfig
@@ -1,7 +1,4 @@
1# SPDX-License-Identifier: GPL-2.0 1# SPDX-License-Identifier: GPL-2.0
2config ZONE_DMA
3 def_bool y
4
5config XTENSA 2config XTENSA
6 def_bool y 3 def_bool y
7 select ARCH_HAS_SG_CHAIN 4 select ARCH_HAS_SG_CHAIN
diff --git a/arch/xtensa/boot/Makefile b/arch/xtensa/boot/Makefile
index dc9e0ba7122c..294846117fc2 100644
--- a/arch/xtensa/boot/Makefile
+++ b/arch/xtensa/boot/Makefile
@@ -33,7 +33,7 @@ uImage: $(obj)/uImage
33boot-elf boot-redboot: $(addprefix $(obj)/,$(subdir-y)) 33boot-elf boot-redboot: $(addprefix $(obj)/,$(subdir-y))
34 $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS) 34 $(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)
35 35
36OBJCOPYFLAGS = --strip-all -R .comment -R .note.gnu.build-id -O binary 36OBJCOPYFLAGS = --strip-all -R .comment -R .notes -O binary
37 37
38vmlinux.bin: vmlinux FORCE 38vmlinux.bin: vmlinux FORCE
39 $(call if_changed,objcopy) 39 $(call if_changed,objcopy)
diff --git a/arch/xtensa/kernel/vmlinux.lds.S b/arch/xtensa/kernel/vmlinux.lds.S
index b727b18a68ac..b80a430453b1 100644
--- a/arch/xtensa/kernel/vmlinux.lds.S
+++ b/arch/xtensa/kernel/vmlinux.lds.S
@@ -131,6 +131,7 @@ SECTIONS
131 .fixup : { *(.fixup) } 131 .fixup : { *(.fixup) }
132 132
133 EXCEPTION_TABLE(16) 133 EXCEPTION_TABLE(16)
134 NOTES
134 /* Data section */ 135 /* Data section */
135 136
136 _sdata = .; 137 _sdata = .;
@@ -296,38 +297,11 @@ SECTIONS
296 297
297 _end = .; 298 _end = .;
298 299
299 .xt.lit : { *(.xt.lit) } 300 DWARF_DEBUG
300 .xt.prop : { *(.xt.prop) }
301
302 .debug 0 : { *(.debug) }
303 .line 0 : { *(.line) }
304 .debug_srcinfo 0 : { *(.debug_srcinfo) }
305 .debug_sfnames 0 : { *(.debug_sfnames) }
306 .debug_aranges 0 : { *(.debug_aranges) }
307 .debug_pubnames 0 : { *(.debug_pubnames) }
308 .debug_info 0 : { *(.debug_info) }
309 .debug_abbrev 0 : { *(.debug_abbrev) }
310 .debug_line 0 : { *(.debug_line) }
311 .debug_frame 0 : { *(.debug_frame) }
312 .debug_str 0 : { *(.debug_str) }
313 .debug_loc 0 : { *(.debug_loc) }
314 .debug_macinfo 0 : { *(.debug_macinfo) }
315 .debug_weaknames 0 : { *(.debug_weaknames) }
316 .debug_funcnames 0 : { *(.debug_funcnames) }
317 .debug_typenames 0 : { *(.debug_typenames) }
318 .debug_varnames 0 : { *(.debug_varnames) }
319
320 .xt.insn 0 :
321 {
322 *(.xt.insn)
323 *(.gnu.linkonce.x*)
324 }
325 301
326 .xt.lit 0 : 302 .xt.prop 0 : { KEEP(*(.xt.prop .xt.prop.* .gnu.linkonce.prop.*)) }
327 { 303 .xt.insn 0 : { KEEP(*(.xt.insn .xt.insn.* .gnu.linkonce.x*)) }
328 *(.xt.lit) 304 .xt.lit 0 : { KEEP(*(.xt.lit .xt.lit.* .gnu.linkonce.p*)) }
329 *(.gnu.linkonce.p*)
330 }
331 305
332 /* Sections to be discarded */ 306 /* Sections to be discarded */
333 DISCARDS 307 DISCARDS
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c
index 9750a48f491b..30a48bba4a47 100644
--- a/arch/xtensa/mm/init.c
+++ b/arch/xtensa/mm/init.c
@@ -71,7 +71,7 @@ void __init zones_init(void)
71{ 71{
72 /* All pages are DMA-able, so we put them all in the DMA zone. */ 72 /* All pages are DMA-able, so we put them all in the DMA zone. */
73 unsigned long zones_size[MAX_NR_ZONES] = { 73 unsigned long zones_size[MAX_NR_ZONES] = {
74 [ZONE_DMA] = max_low_pfn - ARCH_PFN_OFFSET, 74 [ZONE_NORMAL] = max_low_pfn - ARCH_PFN_OFFSET,
75#ifdef CONFIG_HIGHMEM 75#ifdef CONFIG_HIGHMEM
76 [ZONE_HIGHMEM] = max_pfn - max_low_pfn, 76 [ZONE_HIGHMEM] = max_pfn - max_low_pfn,
77#endif 77#endif