From patchwork Wed Feb 3 19:04:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 61146 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp27470lbl; Wed, 3 Feb 2016 11:06:52 -0800 (PST) X-Received: by 10.66.100.135 with SMTP id ey7mr4853309pab.108.1454526412470; Wed, 03 Feb 2016 11:06:52 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id w12si10864983pfa.177.2016.02.03.11.06.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Feb 2016 11:06:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aR2kU-0000y5-Mm; Wed, 03 Feb 2016 19:05:54 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aR2k4-00007A-08 for linux-arm-kernel@lists.infradead.org; Wed, 03 Feb 2016 19:05:30 +0000 Received: by mail-wm0-x234.google.com with SMTP id l66so85007038wml.0 for ; Wed, 03 Feb 2016 11:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lARUr/boQ2Jqj5sQYf6HeL3cM0Xz6qdl8zetJRgN35A=; b=i3oZ/ldhqfRqfoNW4oyp8SM5S18+qBHa48s08nUlbTQV7wVsI+JvOxaoUhjq3Lw1NR Q1xZ2CK8RIYD0X4vnmVmuKzVK17PT6jgZdMbqB/os8ssHR7VdRPrTuDquMgyCn9UqCQL SAUUVdPUcJhoeh0EqaOl5ZkfK6HYFYW5iMJoc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lARUr/boQ2Jqj5sQYf6HeL3cM0Xz6qdl8zetJRgN35A=; b=WGsuh0hCMlJqm0NyLPTwbLPrYAeHLrCCRL7OBv3pbNLKcHCefVFBQ1YZJTom98OqY6 g1Ey4MOZ8ElWegBhjbp+P79A6GDx+451Zk06CWywOMU21kDaY0wvxJfEthLHwWvCnUwC 3ckJUoX1mrtHdTn5B9IUeYynnNaO8i0XfMvlaieB1aTqJqEr2j4LMnOfxM4AbCYUbXvt CoHywH4/SI7kEq5/WM0n4XnNi/h6Zxp+YhrCpFgzw8xtF/p3MBoPKipPKal+s9AMUYRP 2PW4JomhDo3s6o19+LKGUPtWS9Cgt4B2RBrH41MFbQWRyKiS4YdF0cbwUVrHiZZHh5De yfOw== X-Gm-Message-State: AG10YOTC4JwaLJc+r+GqqymG7d1BBczWBY7jIc9xiuoV9fgscQAq9YRfhREQmvwvgfpUWcKO X-Received: by 10.194.203.168 with SMTP id kr8mr3700814wjc.168.1454526307730; Wed, 03 Feb 2016 11:05:07 -0800 (PST) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id k130sm9299460wmg.6.2016.02.03.11.05.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Feb 2016 11:05:06 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, arnd@arndb.de Subject: [PATCH v2 3/4] kallsyms: remove --page-offset command line option Date: Wed, 3 Feb 2016 20:04:56 +0100 Message-Id: <1454526297-5269-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454526297-5269-1-git-send-email-ard.biesheuvel@linaro.org> References: <1454526297-5269-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160203_110528_414758_76EF0F1F X-CRM114-Status: GOOD ( 15.51 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:234 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chris.Brandt@renesas.com, Ard Biesheuvel , nico@linaro.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org The --page-offset command line option was only used for ARM, to filter symbol addresses below CONFIG_PAGE_OFFSET. This is no longer needed, so remove the functionality altogether. Acked-by: Nicolas Pitre Signed-off-by: Ard Biesheuvel --- scripts/kallsyms.c | 27 ++++---------------- 1 file changed, 5 insertions(+), 22 deletions(-) -- 2.5.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 02473b71643b..ce36fc02fe8c 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -63,7 +63,6 @@ static unsigned int table_size, table_cnt; static int all_symbols = 0; static int absolute_percpu = 0; static char symbol_prefix_char = '\0'; -static unsigned long long kernel_start_addr = 0; static int base_relative = 0; int token_profit[0x10000]; @@ -229,9 +228,6 @@ static int symbol_valid(struct sym_entry *s) char *sym_name = (char *)s->sym + 1; - if (s->addr < kernel_start_addr) - return 0; - /* skip prefix char */ if (symbol_prefix_char && *sym_name == symbol_prefix_char) sym_name++; @@ -742,21 +738,11 @@ static void record_relative_base(void) { unsigned int i; - if (kernel_start_addr > 0) { - /* - * If the kernel start address was specified, use that as - * the relative base rather than going through the table, - * since it should be a reasonable default, and values below - * it will be ignored anyway. - */ - relative_base = kernel_start_addr; - } else { - relative_base = -1ULL; - for (i = 0; i < table_cnt; i++) - if (!symbol_absolute(&table[i]) && - table[i].addr < relative_base) - relative_base = table[i].addr; - } + relative_base = -1ULL; + for (i = 0; i < table_cnt; i++) + if (!symbol_absolute(&table[i]) && + table[i].addr < relative_base) + relative_base = table[i].addr; } int main(int argc, char **argv) @@ -774,9 +760,6 @@ int main(int argc, char **argv) if ((*p == '"' && *(p+2) == '"') || (*p == '\'' && *(p+2) == '\'')) p++; symbol_prefix_char = *p; - } else if (strncmp(argv[i], "--page-offset=", 14) == 0) { - const char *p = &argv[i][14]; - kernel_start_addr = strtoull(p, NULL, 16); } else if (strcmp(argv[i], "--base-relative") == 0) base_relative = 1; else