Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2596134ybb; Fri, 27 Mar 2020 08:32:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuILJGs29i/9Fp9U7KzDgRCPj+DwdkfIew+XgS8n5Fp+GIRU3kVFsY0fyHgWp0HUdM3FY2j X-Received: by 2002:a9d:2963:: with SMTP id d90mr10114924otb.149.1585323130921; Fri, 27 Mar 2020 08:32:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585323130; cv=none; d=google.com; s=arc-20160816; b=uvl7F7aAwvfevnUJlSbQL1b/Yn4TGpU9q3uw/45PHjB8vC32Cly1NW+TxIU8E+DNlb iQRa//pFgmcNYDTMA8xwaHWByUzEglq+c6MQrQz8ShCjXeTjNCBYMKiLRwQj13+swvVF 0N8BbUHMektVvkekjVpQA3M0iQE+36Uxn1CyJJRsMhXONfw6ZIk4uu6GOP4Gna8WJzy8 JtwHmir0iMk7zZB6VVEGp65lqfyDOLXwiHYOVMOeI1Wzw3b8Isr4HnR8yPPGZn+Dw11e QxLwKzZ3wh+UQzUBd3trjRc2IjsgnSH0UMi4aFHC4Q6mFuifetrfMcf26NE8m0kTUh3l 9i6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LrVbKy832yQOEnKJUht0bMjtEexZGq0QyNpHi1sAYOs=; b=nIcNeM6dY7aV75Dhw2m9Fl8kVdfWJ1xXRNBVzJbkfVSQikFlmuhkui+xobiruAqSGE bVHup0JLVRbWq6VrRoyiN6wUEZU8v1dSbpJzs+zfsQctXLLoIiMtI4eEnFe2Dz7w5Gts yJ+G1YSzvZvwKWGX/Zw0sK6+VZ2fIctcaR8B5zc3GkEpirtgW4QqCDPupWtAQI1HyAmc AmQx/0+nhvxsAKWyn6XZmZdwmoztcI011/5EEbPw9zap6kWLUX/6orJrO+K6SEfgAuG0 E7nH1I71FJHwXMOBKK9/tVqvtFTac1Dcil/Zb6MUYDaLcUAXfla5Rdxdzgq12XSGS/2v 1j5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="CE/JXgEo"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c125si2619064ooc.50.2020.03.27.08.31.58; Fri, 27 Mar 2020 08:32:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="CE/JXgEo"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727666AbgC0P27 (ORCPT + 99 others); Fri, 27 Mar 2020 11:28:59 -0400 Received: from us-smtp-delivery-74.mimecast.com ([216.205.24.74]:56645 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726515AbgC0P26 (ORCPT ); Fri, 27 Mar 2020 11:28:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585322936; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=LrVbKy832yQOEnKJUht0bMjtEexZGq0QyNpHi1sAYOs=; b=CE/JXgEoaYMiLYPkCSXHqcW6n1b0FHAco8l8RwJ8zuagRC5xjf9oURD8Y+Z4m7fDJyo60M v+QR5yG13lls2mbldtgQLe1uPyRDtYnb9a3XMgJ3XRaLoxiUXKSE1+Z+2iRIADicPQUYCD 3HanJC94gbp1kSrYy7l+WG858cFOwzc= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-471-Ts07-gpkOVSLxGIWapvoBw-1; Fri, 27 Mar 2020 11:28:52 -0400 X-MC-Unique: Ts07-gpkOVSLxGIWapvoBw-1 Received: by mail-wr1-f69.google.com with SMTP id i18so4681261wrx.17 for ; Fri, 27 Mar 2020 08:28:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LrVbKy832yQOEnKJUht0bMjtEexZGq0QyNpHi1sAYOs=; b=S7TrlyiLqdpJixTcQC2uZF4Na+2+vhfEQSQRrp8JqrmjcDk0DEbD5cXapx68Xmin8z 3BG3ObWm2NFaZSQpG8uVp4foOoT/O2FzfHIko6X92wsy8QJv9v6n1GPg53YiAbrlRNi8 B1xv7V8WQJ3EgwRpeEfvnYzxvESrz19tU9ZNzIX2zST5LXQ38rJCikrDXy0mdX4aulsr tABrrnhnnw4RhDL6k79dqcjJ6Z1p3g6UH7U4+sV3ZeuQWTq0tSsC3v2CGBz09++zi+3n R6H53ezG5psmmypP+jcm2l2IewJraB9LxyhNbyFNFsm02yoNJLXO5AA34Au9pkmuzBVY s3wA== X-Gm-Message-State: ANhLgQ2EF8Y8scbnlhsLlus6Ji8BIqaXzZMTEtCRoQhXI6UXjVBTN0PI 6RuuG7aqh5x1F0WyC+5kToioSTL/w8imQS8Zo9R6162cl86G2CzKdeUapnvQaJCOGxXOHE4FVkd SIL6gegLvBCDiiM5r9dfPjB0Y X-Received: by 2002:adf:e650:: with SMTP id b16mr14914712wrn.328.1585322930876; Fri, 27 Mar 2020 08:28:50 -0700 (PDT) X-Received: by 2002:adf:e650:: with SMTP id b16mr14914701wrn.328.1585322930693; Fri, 27 Mar 2020 08:28:50 -0700 (PDT) Received: from redfedo.redhat.com ([2a01:cb14:58d:8400:ecf6:58e2:9c06:a308]) by smtp.gmail.com with ESMTPSA id i8sm8906856wrb.41.2020.03.27.08.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2020 08:28:49 -0700 (PDT) From: Julien Thierry To: linux-kernel@vger.kernel.org Cc: jpoimboe@redhat.com, peterz@infradead.org, raphael.gault@arm.com, Julien Thierry Subject: [PATCH v2 00/10] Objtool updates for easier portability Date: Fri, 27 Mar 2020 15:28:37 +0000 Message-Id: <20200327152847.15294-1-jthierry@redhat.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patchset includes some of the least controversial changes that were needed as part of the arm64 port [1]. I'm resending these rebase on top of linux-tip/core/objtool, following the addition of Peter's patches [2] It consist mostly of small fixes or lifting some limitations to make it easier to support a new architecture in objtool. Of course, these will not be the only required changes, but these are the ones I hope make enough sense to be merged separately from the rest of arm64 port series. Changes since v1[3]: - Really just rebased things [1] https://lkml.org/lkml/2020/1/9/643 [2] https://lkml.org/lkml/2020/3/25/807 [3] https://www.spinics.net/lists/kernel/msg3453718.html Thanks, Julien --> Julien Thierry (9): objtool: Move header sync-check ealier in build objtool: check: Remove redundant checks on operand type objtool: check: Clean instruction state before each function validation objtool: check: Ignore empty alternative groups objtool: check: Remove check preventing branches within alternative objtool: check: Use arch specific values in restore_reg() objtool: check: Allow save/restore hint in non standard function symbols objtool: Split generic and arch specific CFI definitions objtool: Support multiple stack_op per instruction Raphael Gault (1): objtool: Add abstraction for computation of symbols offsets tools/objtool/Makefile | 5 +- tools/objtool/arch.h | 10 +- tools/objtool/arch/x86/decode.c | 24 +++- tools/objtool/arch/x86/include/cfi_regs.h | 25 ++++ tools/objtool/cfi.h | 21 +-- tools/objtool/check.c | 152 +++++++++++++--------- tools/objtool/check.h | 3 +- 7 files changed, 154 insertions(+), 86 deletions(-) create mode 100644 tools/objtool/arch/x86/include/cfi_regs.h -- 2.21.1