Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp82918lqj; Thu, 11 Apr 2024 10:23:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnTzeh0n7Mg5tmqrnOjq8gG0LodMk3XmSIG+f61xR2ROeVV2LiffHhNvMqYd8z1gQKIls5gImNaVoM+K3VxdzQEZkGnQyHHbcoDc6h/Q== X-Google-Smtp-Source: AGHT+IEN0nSaGEkrcsIA3WY0/7eYdJ0EB5/3V9tA/i8D1UwdbeUDrqIFtdeW/Nk679QVddvaVCW1 X-Received: by 2002:a0c:ab1b:0:b0:69b:3c90:3fdf with SMTP id h27-20020a0cab1b000000b0069b3c903fdfmr406901qvb.65.1712856197123; Thu, 11 Apr 2024 10:23:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712856197; cv=pass; d=google.com; s=arc-20160816; b=HvTfauCXKPROORt6hd+2RAnu/ncJkoM510IjGFHsXu8WgIJ39L5fUkZ+fidOAfWYQc LMCKzAPFj2R4Ydk1M4O2poTRXPVH0nqVZK8G+h2RfguvMj1ieneIlNMKJ4ZHP0+fxZTp BTV8K30mWy7jiQG6vbUh45kqxWPmMiJn/9/Lfjg3jdp3pRvrt/18QgDXRWxsDZ7DxOFQ bjlRM+LhMoVGfDBYfCMAzyTHtLinmdCvZ1PnxWN8xWnD0sW/RmUuqJiE/BeTQ8JdmPGk 0pUMWiHFzVaDjA2HkPXcGwrytso6jwlHbY99L17T9wWLxWIzcfYD7H0TzSgAyJA43v1f NE0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qBD6bXpxU7Hkw+zKfp0+6VUMe+k70Bih07sQJuwKqO4=; fh=8w20HIqhSmY1lzztESWn6g7Jlii1ijSmsCrIg9Ovukw=; b=ekY89WEwHJS2BPEJHGFQy6WwMFZFPsEuATobD0MaTYyLwYnz45Zlu8BGXXme8S3EfQ uNEqeJ/UAqtLQEVXsdKqPs7YovGzjJNd8NDvq0x87QVDqr7zaphCEQWG9hwrgh+qLLPC MJHOMceKiRLYj+AzmBIPoAGEg8aLNeQWt/k6M4GafzJ4J5mR6tsp12kwYzkiqABVE84u zcpfBhBzDyTMa3iCfsYqfB58qnwfjUypWCec4o5A28HN8ygxncN1N+rn4Mt0YrFc+GPa VdqbyjXBuUpZ0EQvm186ydyDu8yEIJdHFCSPJGD/yOc8SM+nF4A4yIFT0b/91GklM4Gl RHmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cSL8EKlc; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-141233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141233-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id cv5-20020ad44d85000000b0069b413ebc4asi1906900qvb.264.2024.04.11.10.23.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 10:23:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cSL8EKlc; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-141233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141233-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D3DF11C2091E for ; Thu, 11 Apr 2024 17:23:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 550EB24A04; Thu, 11 Apr 2024 15:51:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cSL8EKlc" Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F25951C40; Thu, 11 Apr 2024 15:51:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712850666; cv=none; b=PD6ZeSpIQ4god9aA30iN9tcVJacR6FVISGBqkbrWtmjh/NL8KNz6tKY/HcpO0p4VE9ZAqFZmjDlWkvrU+pFCeDgL13U9VHcjZeRk2pUnQIzp+wWhy0grEX7RoYhnM1mrr8MF3GaXHekfaljSLybQDV9Q80Sga5Ggv2d7QnPiYWc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712850666; c=relaxed/simple; bh=pzvrNE8EFEXCzlDSTW+TEzpq7e63AiOfrix7rlIoy68=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OiOZtnBtBScaYyXhYWL8wy3yd1iEPQF4K485JRSEvG5YcEkh+YgeicVsLTMmL0opQnn7SGhC7H5pPGdkACu7GE/450kJ20+ZCuAC0/kq8okg5JbW0FWSPK1Whe6W4jqSnTGvQN/MK0U+QVqG1lLyRzPwcL9UkojncGy3uRbJkDw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cSL8EKlc; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-343c891bca5so5093889f8f.2; Thu, 11 Apr 2024 08:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712850663; x=1713455463; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=qBD6bXpxU7Hkw+zKfp0+6VUMe+k70Bih07sQJuwKqO4=; b=cSL8EKlcVJlFxrKM1/Cz1KSoL7nMCWj9mwsaVa/4MQ842jqW0h0933skjVCgspabU0 i6MLYFR6ljnRJnzcoP8nCUNnROa2virGZDAtIiEWXsESpPi+WbPS9CCnIP31tYFRvqy/ wJ5UZTw0GuGYtTTw1kYpgtFuKPKWMOAeiNX0MHWxkb64hkTqD8UkEBg0C/y9Vb8emRjP tWyRxv1Fu73OZ71IphzBF/KHL1z16jpIXMx6ZWqkR3AqEeocjfkIHwaXUqBotnBEbGmY xobETZZ442wdxZh9L/FgS5oSiWaE1CvpVzau+UtLiN2RR/wbztrw/SMQRNySYiwmfgP6 7DPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712850663; x=1713455463; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qBD6bXpxU7Hkw+zKfp0+6VUMe+k70Bih07sQJuwKqO4=; b=K8go9l7H0g9Ewe/PYjZKYX+CsDQMODCHy42bQQsbigmWObVvT7mhmgL6TLdydBowU6 BXHmBeBF4BeRFQoUwkXJt+wB9UfXDxK5zDouSz6+3MAIkVofzVjXcWRZmpIrHqyHP32R rbwdaIvfJfvOs5WlG2JAQvDX49neh807RBFSrG3T3HMnPbjRKt0h89sdIqo2mxBPnfrD FsKpCtq88J6tl+HCu5+XwqCG3p5vy0ip9j512HQVmXqDm7x2IjlrzNGJwAsBbBxQczSM e/DMnDFHheuo4xOG8xN67cwZsk9d9N+86iGGj42e5rLbqIjb6Fwknph0QF9EC2NBQKvW 521w== X-Forwarded-Encrypted: i=1; AJvYcCUIe3Q7VR3KhT/o8jo2wA39RzIeX4PZSFd+FTRMv3pkpORQuN9uqW3n6mqMONY1ckJeQPYhZDed15zqzDTH4FbciKAlYlC2m50gG7MMseY= X-Gm-Message-State: AOJu0YwlK8dMpSTPELH1RROK6p0VVP2wc1tk48VsuLG9j4uuaWInIbIs ZNRm4AUvUmRrjzzz8zCTFOWqcEOxSvJ2/1gbhQJulu8CppcVWS0n X-Received: by 2002:a5d:60cb:0:b0:343:44b9:af97 with SMTP id x11-20020a5d60cb000000b0034344b9af97mr4906878wrt.64.1712850662873; Thu, 11 Apr 2024 08:51:02 -0700 (PDT) Received: from localhost (cpc1-brnt4-2-0-cust862.4-2.cable.virginm.net. [86.9.131.95]) by smtp.gmail.com with ESMTPSA id s1-20020a5d4241000000b00343ac425497sm2059234wrr.46.2024.04.11.08.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:51:02 -0700 (PDT) Date: Thu, 11 Apr 2024 16:51:01 +0100 From: Stafford Horne To: Geert Uytterhoeven Cc: LKML , Jonas Bonn , Stefan Kristiansson , Eric Biederman , Kees Cook , linux-openrisc@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] openrisc: Add support for more module relocations Message-ID: References: <20240410205201.1885032-1-shorne@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Apr 11, 2024 at 02:12:59PM +0200, Geert Uytterhoeven wrote: > Hi Stafford, > > On Wed, Apr 10, 2024 at 10:52 PM Stafford Horne wrote: > > This patch adds the relocations. Note, we use the old naming R_OR32_* > > instead or the new naming R_OR1K_* to avoid change as this header is > > exported as a user api. > > > --- a/arch/openrisc/include/uapi/asm/elf.h > > +++ b/arch/openrisc/include/uapi/asm/elf.h > > @@ -43,6 +43,8 @@ > > #define R_OR32_JUMPTARG 6 > > #define R_OR32_VTINHERIT 7 > > #define R_OR32_VTENTRY 8 > > +#define R_OR32_AHI16 35 > > +#define R_OR32_SLO16 39 > > Would it make sense to switch to the new names, e.g. > > #define R_OR1K_NONE 0 > > and add definitions for backwards compatibility? > > #define R_OR32_NONE R_OR1K_NONE > Hi Geert, Actually I had a patch doing this and added all 38 or so relocation definitions. But I dropped it at the last moment in favor of simplicity. Let me rework it and add it back. -Stafford