From patchwork Mon Jan 25 14:19:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 572744 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 346F21402A8 for ; Tue, 26 Jan 2016 01:22:59 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=SeMRF6x1; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 0A75F1A196E for ; Tue, 26 Jan 2016 01:22:59 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=SeMRF6x1; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 9076C1A023C for ; Tue, 26 Jan 2016 01:19:52 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=SeMRF6x1; dkim-atps=neutral Received: by mail-wm0-x230.google.com with SMTP id u188so67703295wmu.1 for ; Mon, 25 Jan 2016 06: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=KdNMfb/IFITR7n0/urLJF7y38dv3Z3TAYMMafQppAjg=; b=SeMRF6x1nrL2RgUH9MF/UL69hTKRUFGhY/8jmUughk90JrOAzV+vYxJWee8xDRjfwb 6IkxwGuBRSIG+1HSyqGuFVvqpbytXpLzxfcUwz2lL0vqdAtWbTDKmA8ugG9AHGT4yNqS gcoSkQxXoTopH/KfIPTxnJFk0aCjMesV87qsg= 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=KdNMfb/IFITR7n0/urLJF7y38dv3Z3TAYMMafQppAjg=; b=LVoI5wU7tQATQLYZoowV9V2LSeJquV6jeyy3l2jH8BrZ6s5xtLssIqFTlFJHFL/v5D Sz3+5gH7xbAzEgRLjyrAn3O5s8oQ5j1b03zug2PUHwl3NjOaVgxXTP+B8Besn8Iq1uWc DXn+zlmFyHXMIfl4kQdYFyhOZtKQYtYlTb3viLPZIkZgUXxZvxIhaWU1EezDnsinBxRn cOIsSE+CCq7mU/rXJn23ltNP5h7bpyc/b10BxYyZj6tPa6QCWtMSYMITvJfheIo1yPQM giwiQglWj3dCV4iXxh1OUOI1DB8ue01jFi5y04tv0tJ0coHXe5cpefwf3kNgBToxi6KN KdbA== X-Gm-Message-State: AG10YORklQlozbcAz2sNa0uvccpww4YF3gYtOapZY29kZkZAQXJpJAYyr93qfUCgZbY8YEWM X-Received: by 10.28.99.69 with SMTP id x66mr19066320wmb.10.1453731589731; Mon, 25 Jan 2016 06:19:49 -0800 (PST) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id c15sm16425805wmd.19.2016.01.25.06.19.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jan 2016 06:19:49 -0800 (PST) From: Ard Biesheuvel To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, keescook@chromium.org, akpm@linux-foundation.org, mingo@kernel.org, hpa@zytor.com, heiko.carstens@de.ibm.com, benh@kernel.crashing.org, mpe@ellerman.id.au, mmarek@suse.cz, rusty@rustcorp.com.au, arnd@arndb.de, linux-arch@vger.kernel.org, linux@roeck-us.net Subject: [PATCH v4 1/3] x86: kallsyms: disable absolute percpu symbols on !SMP Date: Mon, 25 Jan 2016 15:19:30 +0100 Message-Id: <1453731572-18448-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453731572-18448-1-git-send-email-ard.biesheuvel@linaro.org> References: <1453731572-18448-1-git-send-email-ard.biesheuvel@linaro.org> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" scripts/kallsyms.c has a special --absolute-percpu command line option which deals with the zero based per cpu offsets that are used when building for SMP on x86_64. This means that the option should only be passed in that case, so add a check for CONFIG_SMP. Otherwise, per cpu variables are recorded as absolute quantities, (which they are not under !CONFIG_SMP) and they are not relocated under CONFIG_RELOCATABLE=y. Signed-off-by: Ard Biesheuvel --- scripts/link-vmlinux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index ba6c34ea5429..b541c21072f2 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -86,7 +86,7 @@ kallsyms() kallsymopt="${kallsymopt} --page-offset=$CONFIG_PAGE_OFFSET" fi - if [ -n "${CONFIG_X86_64}" ]; then + if [ -n "${CONFIG_X86_64}" ] && [ -n "${CONFIG_SMP}" ]; then kallsymopt="${kallsymopt} --absolute-percpu" fi