summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChris Metcalf2015-07-08 23:07:41 +0200
committerChris Metcalf2015-07-09 00:53:49 +0200
commit673c2c34f684e9d4328459e426ab54d51a5865c5 (patch)
tree088062278fffd7a652761691dde8ba6c18104654 /scripts
parentLinux 4.2-rc1 (diff)
downloadkernel-qcow2-linux-673c2c34f684e9d4328459e426ab54d51a5865c5.tar.gz
kernel-qcow2-linux-673c2c34f684e9d4328459e426ab54d51a5865c5.tar.xz
kernel-qcow2-linux-673c2c34f684e9d4328459e426ab54d51a5865c5.zip
modpost: work correctly with tile coldtext sections
The tilegx and tilepro compilers use .coldtext for their unlikely executed text section name, so an __attribute__((cold)) function will (when compiled with higher optimization levels) land in the .coldtext section. Modify modpost to add .coldtext to the set of OTHER_TEXT_SECTIONS so we don't get warnings about referencing such a section in an __ex_table block, and then also modify arch/tile/lib/memcpy_user_64.c so that it uses plain ".coldtext" instead of ".coldtext.memcpy". The latter naming is a relic of an earlier use of -ffunction-sections, which we no longer use by default. Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com> Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/modpost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 91ee1b2e0f9a..12d3db3bd46b 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -886,7 +886,8 @@ static void check_section(const char *modname, struct elf_info *elf,
#define TEXT_SECTIONS ".text", ".text.unlikely", ".sched.text", \
".kprobes.text"
#define OTHER_TEXT_SECTIONS ".ref.text", ".head.text", ".spinlock.text", \
- ".fixup", ".entry.text", ".exception.text", ".text.*"
+ ".fixup", ".entry.text", ".exception.text", ".text.*", \
+ ".coldtext"
#define INIT_SECTIONS ".init.*"
#define MEM_INIT_SECTIONS ".meminit.*"
_print functionJiri Olsa2014-02-181-0/+1 * perf record: Add readable output for callchain debugJiri Olsa2014-02-182-2/+5 * perf tools: Add call-graph option support into .perfconfigJiri Olsa2014-02-184-1/+30 * perf tools: Put proper period for for samples without PERIOD sample_typeJiri Olsa2014-02-181-1/+1 * perf report: Remove some needless container_of usageArnaldo Carvalho de Melo2014-02-181-9/+6Star * perf tools: Shorten sample symbol resolving function signatureArnaldo Carvalho de Melo2014-02-184-13/+10Star * perf tools: Shorten sample symbol resolving function signatureArnaldo Carvalho de Melo2014-02-184-11/+9Star * perf report: Use al->cpumode where applicableArnaldo Carvalho de Melo2014-02-181-5/+3Star * Merge remote-tracking branch 'acme/perf/urgent' into perf/coreArnaldo Carvalho de Melo2014-02-184-3/+44 |\ | * perf trace: Fix ioctl 'request' beautifier build problems on !(i386 || x86_64...Arnaldo Carvalho de Melo2014-02-131-0/+18 | * perf trace: Add fallback definition of EFD_SEMAPHOREBen Hutchings2014-02-101-0/+4 | * perf list: Fix checking for supported events on older kernelsVince Weaver2014-02-101-2/+15 | * perf tools: Handle PERF_RECORD_HEADER_EVENT_TYPE properlyJiri Olsa2014-02-101-0/+6 | * perf probe: Do not add offset twice to uprobe addressMasami Hiramatsu2014-02-101-1/+1 * | perf/x86/p4: Block PMIs on init to prevent a stream of unkown NMIsDon Zickus2014-02-091-0/+15 * | perf/x86/p4: Fix counter corruption when using lots of perf groupsDon Zickus2014-02-091-1/+18 * | x86/nmi: Push duration printk() to irq contextPeter Zijlstra2014-02-092-13/+27 * | perf/x86: Push the duration-logging printk() to IRQ contextPeter Zijlstra2014-02-092-7/+23 * | Merge branch 'linus' into perf/coreIngo Molnar2014-02-09