From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: Forwording symbols Date: Mon, 17 Jun 2024 14:15:25 +0200 Message-ID: References: <87jziod6yc.fsf@gmail.com> <86bk3zsup7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2337"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eller.helmut@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 17 14:16:29 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sJBHh-0000NM-5R for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Jun 2024 14:16:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJBGm-0005bE-P8; Mon, 17 Jun 2024 08:15:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJBGl-0005b6-Tj for emacs-devel@gnu.org; Mon, 17 Jun 2024 08:15:31 -0400 Original-Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJBGk-0004Zp-7E; Mon, 17 Jun 2024 08:15:31 -0400 Original-Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a6f09b457fdso401534566b.2; Mon, 17 Jun 2024 05:15:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718626527; x=1719231327; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=sianG1bj/uF72H/DyI/kR0Qn58XKD+QturaeMbs/RfQ=; b=JbLBAEQ1o7RDTO3BXUa4AcfNZV0+1fTmvfC8YviSQxMgIoP/58e3jOUlLMcoaTeLTX 6zPnhI8D0HY/f2+mC/QfFFI1ImlEzH4LHrF5lQolmWVHEjTavNGx1OAvt9L3k31/qUDm XkJjJbqZhEZOR1O0SPZhJrMFQkNWcXXRB4v78vXioEPYxZDOzlMAsT0TOS4f8ZgWvlee +U/4I5nYEt9NqHafqMiq/AuNakp9zw6xOvBjx8HXxwAUGikerMbNGAzzasmVVz+xvx3V UgcP59oZkmcm2w130c6qVK/tSfwa6pw0jhKgCJ5xCls25sPSMJKr/iL388LA3bt9UGZQ efug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718626527; x=1719231327; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=sianG1bj/uF72H/DyI/kR0Qn58XKD+QturaeMbs/RfQ=; b=H6GhprSoSr+/y7kI6yOpagR4gan+iDRq79XDzYOFH363hUF9WNybjlVUF0SCj3h2Pj 6rKkvSPZAVCXr7lmRzH0x5JJ6D4fZSzGMKPp+2Ct5eHwYr6sVFHrTbZlChT7QOI6pIKS RF2KfjWlYaWgtv/ilATPIqzekK2kRoMDRNs6TDEPW52bWHO1BQTkfB5+z7zPgDUmWLjR +E6UXC2rFreK0jUchwWvSU5g2PXL7kbzuQd2+CD1AcgM3J13To5ffgigQ4Rj4g0wIf7c tBagix6H8D90rXg9Y2ve8b40E6pwF43xNgQZ6yxpj+8LQyDcT6wB02n4phY7QyhIJFcI PKWA== X-Forwarded-Encrypted: i=1; AJvYcCVid8aRfcaaWV3eD9CvNBKGR7EA97Sro2E560p16Ld4FQ9Hf/KtJohFMx5GbCbcOC/br0CgSaPInV6OAiijNbQajabf X-Gm-Message-State: AOJu0Yze3rNWWT+QMoHj/HTTP4DK/fuuSaasHZ3Ej5z44CKj7c80rVwe rgjuXzn/7RO0Glvna6PP+4VbDLL1KYPPYVbb/omxLzuzvsyB/UTWmVikPA== X-Google-Smtp-Source: AGHT+IFwjj7JreTmjgxZLO2/HakwgXf+Bz5V7ImuCB2uwkIsmNwqN4RHDY7BAYlunTrTcoZnYNNQkA== X-Received: by 2002:a17:906:7215:b0:a65:7643:3849 with SMTP id a640c23a62f3a-a6f60de5f9bmr653442366b.73.1718626526706; Mon, 17 Jun 2024 05:15:26 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36d9b.dip0.t-ipconnect.de. [217.227.109.155]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56ecdd40sm510640166b.120.2024.06.17.05.15.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 05:15:26 -0700 (PDT) In-Reply-To: <86bk3zsup7.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 17 Jun 2024 13:57:24 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320210 Archived-At: Eli Zaretskii writes: >> > Hm, why do you think it writes to the data segment? Confusing names >> > aside, it seems to read a value, which presumably is a pointer, adjusts >> > it to the new basis and then writes it back. >> >> Becasue of this >> >> value += emacs_basis (); >> >> It has dumnped pointer - basis, and now uses that value to get the >> pointer in the current process. > > Isn't this because the dumped data is loaded with a different base > address than the one with which is was dumped? That'c correct. The same happens, with a different basis, for addresses in the dump. Helmut asked how I know that it writes to Emacs' data segment. That's from the use of emacs_basis.