Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp857936ybm; Fri, 29 May 2020 14:03:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzBfTAJrlJx37+xUFKQTMaZjTG2rtBiMwTPSVtCCJxOm/zXNLVuUSPsh9C5mQviz32PLgH X-Received: by 2002:a17:906:34c4:: with SMTP id h4mr10156501ejb.167.1590786226834; Fri, 29 May 2020 14:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590786226; cv=none; d=google.com; s=arc-20160816; b=M46is3sR8CGqO01jfEN61B2Jyazd0NwLOjfFo2czojb7ze++/XYAd1hDq2nySGDyhK XqeUhzORXQeGPMPcqJ14zi1fsn+l5jUbiKRvHEkSjepVRxTt84k+1/z+0MMt1hrq38If 2PTibTWyafu/zESnn8vKgzom0OslENB6CqnsimJuSzhsnjzD5xflfpD9hS4VQEqBuidI 2WgaqkySCd2CiV3nZxX7WdkEBBI6blqLoAPKA3iJ+l4UnJ3Ru5Hf/aRpLshOm0SAvdoA dOexKgqWerTe8P1QJGMfmzKJPHX4RgvkdAfy4H6kMUor5WWFvJb3vp0sKpBVWMgoX9J+ mpVg== 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; bh=gomp7qNehAfqS1FXsfLFCS+gwrtrRg2HHjkgFIxFe8Y=; b=Hl9DkPeHte3S1B/ZojasDc23/1zrn5WyQEJDFQXpdERK+fsvxwtGplKqjgQJ1ApS2o J5tTZ6Y61O9+l5yO7HPpqVMZpoIJLN48JWK3ig2LjKVCgRKnUObfakiaEe15m5FKkqz5 k2ZVPlhBVXPRV14GWfflX8tDl6UaE3JZEJQnDTyajkxQaJ5rkbr8zapMcVHhQlO6oYGa E7X0MGTQLveMMyH9ewzBcMM1dbJp67p+Y7y3cPe0R5uUifdCg1rOoyauijhGUnLuHI2v J5L+coXYsK4V0bUvS0Nz9IRKYC5BuR1vTRMOIeNEHSGgYr84hUbSwqFKh8bMoQksQbGD 5Jvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r10si5850527ejj.249.2020.05.29.14.03.23; Fri, 29 May 2020 14:03:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728040AbgE2VB0 (ORCPT + 99 others); Fri, 29 May 2020 17:01:26 -0400 Received: from ex13-edg-ou-001.vmware.com ([208.91.0.189]:31979 "EHLO EX13-EDG-OU-001.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727781AbgE2VBZ (ORCPT ); Fri, 29 May 2020 17:01:25 -0400 Received: from sc9-mailhost2.vmware.com (10.113.161.72) by EX13-EDG-OU-001.vmware.com (10.113.208.155) with Microsoft SMTP Server id 15.0.1156.6; Fri, 29 May 2020 14:01:20 -0700 Received: from sc9-mailhost2.vmware.com (unknown [10.200.192.41]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id D85C4B29FC; Fri, 29 May 2020 17:01:24 -0400 (EDT) From: Matt Helsley To: CC: Josh Poimboeuf , Peter Zijlstra , Steven Rostedt , Julien Thierry , Matt Helsley Subject: [PATCH 0/2] objtool: Support implicit addend relocations Date: Fri, 29 May 2020 14:01:12 -0700 Message-ID: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII Received-SPF: None (EX13-EDG-OU-001.vmware.com: mhelsley@vmware.com does not designate permitted sender hosts) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Future tools that use objtool to process ELF object files may require reading or even modifying relocations with implicit addends. This series cleans up the naming of the relocation struct in objtool, variable names, and function names to be consistent with a more generic use rather than being specific to those applying explicit addends. Changes since RFC [1]: * Dropped the second patch and rebased on tip objtool/core with patch[2] from Sami Tolvanen [Josh Poimboeuf] * Remade the rename patch with a sed script and added script to the commit message to aid backports. [Josh] * Removed function pointers from last patch. [Josh] * Added relocation type parameter to elf_create_reloc_section() to match pattern with relocation section rebuilding. [1] https://lore.kernel.org/lkml/cover.1590597288.git.mhelsley@vmware.com [2] https://lore.kernel.org/lkml/20200421182501.149101-1-samitolvanen@google.com/ Matt Helsley (2): objtool: Rename rela to reloc objtool: Add support for relocations without addends tools/objtool/arch.h | 2 +- tools/objtool/arch/x86/decode.c | 2 +- tools/objtool/check.c | 190 +++++++++++------------ tools/objtool/check.h | 2 +- tools/objtool/elf.c | 262 +++++++++++++++++++++++--------- tools/objtool/elf.h | 27 ++-- tools/objtool/orc_gen.c | 44 +++--- tools/objtool/special.c | 22 +-- 8 files changed, 333 insertions(+), 218 deletions(-) base-commit: 0decf1f8de919782b152daf9c991967a2bac54f0 prerequisite-patch-id: 83ac956b6b4a769cafcdc4abaea4a3bcc3136d6d -- 2.20.1