From patchwork Tue Feb 9 09:31:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 61511 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1933517lbl; Tue, 9 Feb 2016 01:33:40 -0800 (PST) X-Received: by 10.98.34.198 with SMTP id p67mr48816920pfj.93.1455010419980; Tue, 09 Feb 2016 01:33:39 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id kv12si52899745pab.194.2016.02.09.01.33.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Feb 2016 01:33:39 -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 1aT4ev-0004Ok-QG; Tue, 09 Feb 2016 09:32:33 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aT4dx-0003XB-4L for linux-arm-kernel@lists.infradead.org; Tue, 09 Feb 2016 09:31:39 +0000 Received: by mail-wm0-x232.google.com with SMTP id p63so14549854wmp.1 for ; Tue, 09 Feb 2016 01:31:16 -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=De8KSJI34aQGnyUPX5jvVKZEUXaAco/3yPjr+GGXdI0=; b=bfsmd+z7p9s+JPMAmuNTZr1AmiXumaoDfEPXhRe5nX730CGHKhHEzUoqUiCjU3ag6s uSrdq/EtwN+OaWpH1PJYRljpR1K/QaoLx7jMxpRrlZresNdAdEiO6IISoUIlb4VWxTKX 418CQYQbC5ASeZ/TklWgjgJQF/+PKt5CDY8pQ= 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=De8KSJI34aQGnyUPX5jvVKZEUXaAco/3yPjr+GGXdI0=; b=cUWqKvenJ97S41/EvJHSy4NEttUsau8qbO8cq5RnZQ2tSsCoYhpJ8/cPQ9EgPFOuit awPEYIrGs7ZE4rJonL8Ynp3rmmGVAoISO0vT+nJtBYtuLmpHjkwAs9cnbeIhgLlBB+ay TT90zUnQ/x49PfG2IGd+xskMzU+8Z9CUFLV/HIk3yhJmGii5n87Mo97eVs7hEkAxXUiV /qgQHEcbXs8syWEEi9JaIhZuQnY+ZEP5r0LBB/6ou7nE4S2FUEx3BWFSvE+OanZT1Lgg 4SOwzFhQCVZRRj1jtJfolgsTmijEIK1vQbiAhUfEiaML6LeQfF+B6uYTolHsbEP4L5ar CLFg== X-Gm-Message-State: AG10YOR9GXgNOLY/eCr+jLnwLdKm/j3YAuYXd9R//9he4cSIawZsxyJAXf2FZx2/r03Y02Ks X-Received: by 10.194.235.137 with SMTP id um9mr36757895wjc.146.1455010275475; Tue, 09 Feb 2016 01:31:15 -0800 (PST) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id 198sm16696383wml.22.2016.02.09.01.31.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Feb 2016 01:31:14 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk Subject: [PATCH v3 3/3] kallsyms: remove --page-offset command line option Date: Tue, 9 Feb 2016 10:31:02 +0100 Message-Id: <1455010262-28894-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455010262-28894-1-git-send-email-ard.biesheuvel@linaro.org> References: <1455010262-28894-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160209_013133_717195_58074D78 X-CRM114-Status: GOOD ( 11.81 ) 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:232 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 Acked-by: Chris Brandt Signed-off-by: Ard Biesheuvel --- scripts/kallsyms.c | 8 -------- 1 file changed, 8 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 638b143ee60f..de9b74b083c2 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]; @@ -228,10 +227,6 @@ static int symbol_valid(struct sym_entry *s) int i; 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++; @@ -765,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