From patchwork Tue Feb 9 15:13:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 61546 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2102481lbl; Tue, 9 Feb 2016 07:15:59 -0800 (PST) X-Received: by 10.98.14.69 with SMTP id w66mr51449328pfi.144.1455030959540; Tue, 09 Feb 2016 07:15:59 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id vr3si54608506pab.48.2016.02.09.07.15.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Feb 2016 07:15:59 -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 1aTA0K-0003vY-Hb; Tue, 09 Feb 2016 15:15:00 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aT9zl-0003av-F8 for linux-arm-kernel@lists.infradead.org; Tue, 09 Feb 2016 15:14:27 +0000 Received: by mail-wm0-x230.google.com with SMTP id c200so64734898wme.0 for ; Tue, 09 Feb 2016 07:14:05 -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=b0lHDNjqCCgCsPn/BY7o1emE6/w66Cxqf19nIe+5J1w=; b=YHgtOjDvyMVFD7Rsqt8Aqmzk83iKCsaSZtSyQ0c+kHUT1lK0+jNNtYg/9gpdIOpcjm dcMYiARysp7CZyaVRjflWWHSNMP3l7U6HROjxwLR0KXbaKDcp21/S9a+LtACIriJXF/z 60BtumSyEUoH659VAIKwKWsE3p04ZmFGWYxpQ= 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=b0lHDNjqCCgCsPn/BY7o1emE6/w66Cxqf19nIe+5J1w=; b=UnX1J1mRcBeHKgnvFIOCVz5g5mvtQ+J084MFE7zIXcG50XUW+1EMrcR3+iHfWKLmB/ nxFmELTDFt3tGA9C8ZwvI73QUKyyNO1h5QuVtF67Z4RaM0qZNa1fMKhuQymRniuQblwA GhYVcH5BwBo8kQGkQM91AVz304lm3dQCER3KnjeCEDNEwcgqT9CVqSxZNC5xf7TyrqmT n1dBHogO8aUe87HIabQSpWoG+PnOnwzG0sYDaDoZauB7AirIjIGohG0zaKcAefV2PWYi sRi1hr91bMhgAWmhvnNPqLZZDsfXSboNbOdJAFzbFHpx02Exlp4t42yg+sXdNVfY21vl aDhQ== X-Gm-Message-State: AG10YOQj0VRKWyfkPAWfuFLkD69NEsTkakHIvvp4GjIQMcJW+nq0ip8imAQ7Qsjq47Cli/8L X-Received: by 10.28.170.139 with SMTP id t133mr5759745wme.50.1455030843801; Tue, 09 Feb 2016 07:14:03 -0800 (PST) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id yz5sm35268217wjc.36.2016.02.09.07.14.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Feb 2016 07:14:02 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk Subject: [PATCH v4 3/3] kallsyms: remove --page-offset command line option Date: Tue, 9 Feb 2016 16:13:48 +0100 Message-Id: <1455030828-6416-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455030828-6416-1-git-send-email-ard.biesheuvel@linaro.org> References: <1455030828-6416-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_071425_802320_AA60747B X-CRM114-Status: GOOD ( 11.71 ) 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:230 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 02473b71643b..32c8d43590af 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++; @@ -774,9 +769,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