mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
681ba73c72
ld.lld warns that the '.modinfo' section is not currently handled: ld.lld: warning: kernel/built-in.a(workqueue.o):(.modinfo) is being placed in '.modinfo' ld.lld: warning: kernel/built-in.a(printk/printk.o):(.modinfo) is being placed in '.modinfo' ld.lld: warning: kernel/built-in.a(irq/spurious.o):(.modinfo) is being placed in '.modinfo' ld.lld: warning: kernel/built-in.a(rcu/update.o):(.modinfo) is being placed in '.modinfo' The '.modinfo' section was added in commit898490c010
("moduleparam: Save information about built-in modules in separate file") to the DISCARDS macro but Hexagon has never used that macro. The unification of DISCARDS happened in commit023bf6f1b8
("linker script: unify usage of discard definition") in 2009, prior to Hexagon being added in 2011. Switch Hexagon over to the DISCARDS macro so that anything that is expected to be discarded gets discarded. Link: https://lkml.kernel.org/r/20210521011239.1332345-3-nathan@kernel.org Fixes:e95bf452a9
("Hexagon: Add configuration and makefiles for the Hexagon architecture.") Signed-off-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Acked-by: Brian Cain <bcain@codeaurora.org> Cc: David Rientjes <rientjes@google.com> Cc: Oliver Glitta <glittao@gmail.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
70 lines
1.3 KiB
ArmAsm
70 lines
1.3 KiB
ArmAsm
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Linker script for Hexagon kernel
|
|
*
|
|
* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#include <asm-generic/vmlinux.lds.h>
|
|
#include <asm/asm-offsets.h> /* Most of the kernel defines are here */
|
|
#include <asm/mem-layout.h> /* except for page_offset */
|
|
#include <asm/cache.h> /* and now we're pulling cache line size */
|
|
#include <asm/thread_info.h> /* and we need THREAD_SIZE too */
|
|
|
|
OUTPUT_ARCH(hexagon)
|
|
ENTRY(stext)
|
|
|
|
jiffies = jiffies_64;
|
|
|
|
/*
|
|
See asm-generic/vmlinux.lds.h for expansion of some of these macros.
|
|
See asm-generic/sections.h for seemingly required labels.
|
|
*/
|
|
|
|
#define PAGE_SIZE _PAGE_SIZE
|
|
|
|
SECTIONS
|
|
{
|
|
. = PAGE_OFFSET;
|
|
|
|
__init_begin = .;
|
|
HEAD_TEXT_SECTION
|
|
INIT_TEXT_SECTION(PAGE_SIZE)
|
|
PERCPU_SECTION(L1_CACHE_BYTES)
|
|
__init_end = .;
|
|
|
|
. = ALIGN(_PAGE_SIZE);
|
|
_stext = .;
|
|
.text : AT(ADDR(.text)) {
|
|
_text = .;
|
|
TEXT_TEXT
|
|
IRQENTRY_TEXT
|
|
SOFTIRQENTRY_TEXT
|
|
SCHED_TEXT
|
|
CPUIDLE_TEXT
|
|
LOCK_TEXT
|
|
KPROBES_TEXT
|
|
*(.fixup)
|
|
}
|
|
_etext = .;
|
|
|
|
INIT_DATA_SECTION(PAGE_SIZE)
|
|
|
|
_sdata = .;
|
|
RW_DATA(32,PAGE_SIZE,_THREAD_SIZE)
|
|
RO_DATA(PAGE_SIZE)
|
|
_edata = .;
|
|
|
|
EXCEPTION_TABLE(16)
|
|
|
|
BSS_SECTION(_PAGE_SIZE, _PAGE_SIZE, _PAGE_SIZE)
|
|
|
|
_end = .;
|
|
|
|
STABS_DEBUG
|
|
DWARF_DEBUG
|
|
ELF_DETAILS
|
|
|
|
DISCARDS
|
|
}
|