From patchwork Tue Feb 2 13:19:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 61021 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp727756lbb; Tue, 2 Feb 2016 05:22:15 -0800 (PST) X-Received: by 10.66.191.104 with SMTP id gx8mr46806191pac.21.1454419334881; Tue, 02 Feb 2016 05:22:14 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id 82si2004465pfn.23.2016.02.02.05.22.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Feb 2016 05:22:14 -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 1aQasr-00047r-Cf; Tue, 02 Feb 2016 13:20:41 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aQasM-0002ZL-BT for linux-arm-kernel@lists.infradead.org; Tue, 02 Feb 2016 13:20:12 +0000 Received: by mail-wm0-x231.google.com with SMTP id l66so22421389wml.0 for ; Tue, 02 Feb 2016 05:19:52 -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=/c2RVJSry8SJpHRSN/GMf6Dq0aRbLXEGuOoPQiZkqAY=; b=ebe1PUIzJ40wdcnwssURVhmfLIBcfyKpXD6Nw59UDojQDr2VjD0YPLEnsJ9lz50+r7 fsKQGqc+T/KV1gMMEmgMyfWSTg4l0m5wWVaRMQsoQP528ACy97JMU6ZAWYmELQbOMESo mUp9EnqbtWZ0ExYmW2S4b2MAbuc2bCOGbmqwE= 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=/c2RVJSry8SJpHRSN/GMf6Dq0aRbLXEGuOoPQiZkqAY=; b=iK2WPWslAbxjx4k8F15EreJks8411OQhrogJsdPeUuSvKlY6hLQ2MXxv8exQzj0Vl0 YOum8PXI4bciarogj5qiqFGBl6Y9oMG6rZ4duhCUcLEwLLxzSQZb8lDYeN7aSfSWlaTt vf24fn/IEvgPSNXMUhUDOEL9ouPjLf6lDWh6JofcJ4h4CWwvd4sXn86rdTqfGI9ZfT9i EsBUicbJvpYhtfJFeKPdFeQ3uYJitlquFpjSOhtVYTnek/Cl8wVIlyhuRs9VlbmjWFKe mYR531JtCBd+R3T2qvyaDmC4VE48IkHHv3fUs3Dic3WuaibBwSZ+ryCf1AcANtyRRnOa Z8lQ== X-Gm-Message-State: AG10YOQCDGeRl8cLkzRVNEgNxmAd3Bnh2fr6fuVM0IoYqOvFL9rDMWRbl5M1GYPL8kz4FpKw X-Received: by 10.28.217.83 with SMTP id q80mr17193518wmg.15.1454419191416; Tue, 02 Feb 2016 05:19:51 -0800 (PST) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id r10sm1469906wjz.24.2016.02.02.05.19.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Feb 2016 05:19:50 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, arnd@arndb.de, broonie@linaro.org Subject: [PATCH 3/3] kallsyms: remove --page-offset command line option Date: Tue, 2 Feb 2016 14:19:34 +0100 Message-Id: <1454419174-21290-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454419174-21290-1-git-send-email-ard.biesheuvel@linaro.org> References: <1454419174-21290-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160202_052010_628377_AE319BE2 X-CRM114-Status: GOOD ( 15.49 ) 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:231 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_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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: linus.walleij@linaro.org, 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. 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