Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp944129ybm; Fri, 29 May 2020 16:26:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFZ/zVD3AJypYyd/bMcJVj7aa95CjWuWpTVO8dfaueABxOXSagB90Rc+OJvSQvcd6cQSvx X-Received: by 2002:a05:6402:1481:: with SMTP id e1mr9006370edv.113.1590794794748; Fri, 29 May 2020 16:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590794794; cv=none; d=google.com; s=arc-20160816; b=djdsQaWTMWzx6mcu0hKwBrNm0tJ/fx5u14DsaRm2Bq0RdeZNA+klPu6gZz7vOI+Glx jzwHb/oIHyyhEJz9hFS3XtZrv8dD+tNfHqTrzwu798mU4rkfMe5427HWIoqQkNDtsORB lOfvA3nFsBNCH9pfPhQximeedaLcSaGXkdk08Sd4R6e7rRHpjBhES70BOKabfFQ5Js6S ZiMY336bcM9s7NHQXa/5yHeMPJT2IPo1NwfVJzpqi1QbPz2zpcZY17vup30wt2F6tBLN 8DsKccEDolUj1+ggA2XcWWUb92/un8Zx//kW0uLIN+jrWyMdvzl5wCFEE5aeQGuUOnKn pv/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8A5G+qFYuCrXOOgykP56EexnSdFAp2t0M/7TVEW0xww=; b=W1rBXwCdqUN4SwNyerNqSQmWNXQJpZ7XTHlR5mIbTMV1AZ78cXXvIGEKykYNSiwmiY pe/WE1BYTQZLC/MHue59x3oHyHkd+msAPi8syxo/fjpeUvGGls/UsYcQa5XTFyzzQuHP 3lftbVYgh5iQ4vXSbRqjXfLdwgxZs8pLBZf44aCVB8zgI5HtBjPQDcHVm+7U9EDe6X6W IyxRkk3zUyqjEJBFHL+538C6S03kO4dcaxwckRl1E88kCjtCVG64SiwXru9BVoEgnmbo fznO4hq8dS2ML6WFXlsWtYhyjb7R+yMQKYVfZeDR/X/wBLE6EZ++oof7rnNvJz9YMrhI Ny2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NGaxJQxI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si1503560ejc.714.2020.05.29.16.26.10; Fri, 29 May 2020 16:26:34 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NGaxJQxI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728493AbgE2XWK (ORCPT + 99 others); Fri, 29 May 2020 19:22:10 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:39126 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726898AbgE2XWK (ORCPT ); Fri, 29 May 2020 19:22:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590794528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8A5G+qFYuCrXOOgykP56EexnSdFAp2t0M/7TVEW0xww=; b=NGaxJQxIO8WrVYGWpb6tNzNEpZYlIw3L9+bGYwKJc49nh7mPCK3uBLctW3SaoC9KefFKyo VA5fcDlrwU0FBRof9ch9OJJWl65kNSRZe5eZbCr/rWJPexLnohSCPI67yTyoJniSjLL4zI 8+oocQG+5WKw1e6kdhsHaxAZjbhwlUc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-166-h2o-eJEbNOG9FbvpR5OAdA-1; Fri, 29 May 2020 19:22:04 -0400 X-MC-Unique: h2o-eJEbNOG9FbvpR5OAdA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 791561800D42; Fri, 29 May 2020 23:22:03 +0000 (UTC) Received: from treble (ovpn-116-170.rdu2.redhat.com [10.10.116.170]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A916760BE2; Fri, 29 May 2020 23:22:02 +0000 (UTC) Date: Fri, 29 May 2020 18:22:00 -0500 From: Josh Poimboeuf To: Matt Helsley Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Steven Rostedt , Julien Thierry Subject: Re: [PATCH 1/2] objtool: Rename rela to reloc Message-ID: <20200529232200.xhjaemclbg2uqrih@treble> References: <39f183f3acec8a758939dcbede7908a7455be8b8.1590785960.git.mhelsley@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <39f183f3acec8a758939dcbede7908a7455be8b8.1590785960.git.mhelsley@vmware.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 29, 2020 at 02:01:13PM -0700, Matt Helsley wrote: > Before supporting additional relocation types rename the relevant > types and functions from "rela" to "reloc". This work be done with > the following regex: > > sed -i -e 's/struct rela/struct reloc/g' \ > -e 's/\([_\*]\)rela\(s\{0,1\}\)/\1reloc\2/g' \ > -e 's/tmprela\(s\{0,1\}\)/tmpreloc\1/g' \ > -e 's/relasec/relocsec/g' \ > -e 's/rela_list/reloc_list/g' \ > -e 's/rela_hash/reloc_hash/g' \ > -e 's/add_rela/add_reloc/g' \ > -e 's/rela->/reloc->/g' \ > -e '/rela[,\.]/{ s/\([^\.>]\)rela\([\.,]\)/\1reloc\2/g ; }' \ > -e 's/rela =/reloc =/g' \ > -e 's/relas =/relocs =/g' \ > -e 's/relas\[/relocs[/g' \ > -e 's/relaname =/relocname =/g' \ > -e 's/= rela\;/= reloc\;/g' \ > -e 's/= relas\;/= relocs\;/g' \ > -e 's/= relaname\;/= relocname\;/g' \ > -e 's/, rela)/, reloc)/g' \ > -e 's/, relaname/, relocname/g' \ > -e 's/sec->rela/sec->reloc/g' \ > -e 's/(\(!\{0,1\}\)rela/(\1reloc/g' \ > arch.h \ > arch/x86/decode.c \ > check.c \ > check.h \ > elf.c \ > elf.h \ > orc_gen.c \ > special.c \ Holy regex! Thanks for doing that :-) I'll run these through testing and merge. -- Josh