From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id 361BA3858D26 for ; Wed, 29 Jan 2025 22:26:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 361BA3858D26 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 361BA3858D26 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::636 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738189583; cv=none; b=V5SIxdGjqkCywzkejVPf7iEhMFdUPUjGGQQhHPevbFYAlkxff0xLfLeC76Mph7KhT+SLLhLF/bfWqiJ1sVRxNKjXmz4KKrg/veM3jDlOPStAjthbMxJ5JLQkPseTBecleZBbuDvUNr3vflAqqdUFxX8HiIzfv01GtZbr1o4R2mQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738189583; c=relaxed/simple; bh=xRneBcDD6fMmUctO9P2R5YdWRCqFGfA62gW7Nj5ZF5w=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=EgYqFCcYAWPqU8s9BvvDB5ylRJC85Swv2G3+z6BRSWJ0QSB/BpmjamPlBha0bveJ+AP+AynjJxAx3uyo8ZhLK+osaqgIhasna51oBKOSxKqjDQvvTbX///LBgN7iD/xsK53GuebsO2FKEHN0sg450IxsVpeaf7v8pedRGD+Q0Aw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-21c2f1b610dso3442515ad.0 for ; Wed, 29 Jan 2025 14:26:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738189582; x=1738794382; darn=sourceware.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PNUtPqAYAVJ170YzQo2C82WYwHsZW3R8/jBpLcq27jE=; b=DGtVeFWgcIDqaIN9CZgyKnDjKeiovXIVupitYaPi9yx91dPPk0ZUhWMAe/NL6hPTpJ jeoadrCiYQCErz8cocTgs/kPV5DVo6csXtM8pS+gL3oMzBNzS0NEwd7FFo2nrPkfBRV9 tL/RQfvsIoyRly5TcVN/brh/hEwL/v3ZcMY3oXqP03g2b2Ic1+jC5uEM/j/k7t6FEdne mywQMlBsmTIkBhRssc4SP6HZSVZ0XxKS0/DC6cMxC0sQTvK78OMv9dW354cVORRvdAIw hyewKjMGSDLPVM4AMdJMO3r4XkJcsh7owqBSsVzVOiRS+A8wdt2gMWXqkJPcfBg/lrPN Uqhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738189582; x=1738794382; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PNUtPqAYAVJ170YzQo2C82WYwHsZW3R8/jBpLcq27jE=; b=rAuIW5aruJ/QwnZnoTiseQ3wIDsyJx0grjzDsUByrpvN1/+z6Ah28tUNVkhfmmWdo7 KbhZ25Xd/HiV7jNE/hp8HxdwzghrGhxExcRNHapXY/x61JhgwvZQAEWTcS4FR46TwJWq yDaElIBl3EWBFCfEvXx1smW5WVS6cY1C5jGCMSbx6KHPlivd3vqG3mvz+v8iTqy6tBrR fPj4IR7vd0IAoIDo/JawnbA0MCDugKSniYVJQO/vA2j3PlXAut2PjTh8P0U3q9lc041j Xep8sUZSQK5kXYpGyFtMXmD5X6VzZZYnVDgYvs4Cp7ZuLoPg0eS6H1CWPDUnh8OkcFW/ Z2PQ== X-Gm-Message-State: AOJu0YxdIuBqYal9kszOs9tIR9/vUYpJx7n/2OhzvTa3c6H9si/SB9tZ dOWfhKb/Suod8EGvfa9/GLWkOq6vhvPNk0gclrZHd2jenMDFRPAW8+Pot0Fd X-Gm-Gg: ASbGnct2+a2JPyVqK/+7l6iWxlzvRk4b9Je9/t4f6+rQfu0/sGDtWVSqtzIPqxYaA/i DYnRhLcfxF0vKSKjkuU+x4MFojRZJNjjbB4vPrNhu5OACuGMDMj2wYo5GHHg8kQ7KXI7nOTLvGQ NsZcTHevQOP3SJDN/6AWEldjPi7Qt63Ig2ItiIxIwuzfemQsmCjQfUdfIrN+xpnMrUQgRs1OHAy JzzJ2U6Sf78osbE3WttUk8dgXnVVCCQ3NbbnVrW65iBb1L/mA5cdmJihzKCrRp6E5kpKumKMt4k 64AkVEDyeSCaJCPf7iyV5QoQ1+ONvIWdwuEFRS3r4aZ3VmP2922G8oZlq+I4HBv5 X-Google-Smtp-Source: AGHT+IGxSF1/Y3SkfBxAhn1A4lnn9cJS/e0g2SzSK9+xcxrmkCK6boYgVWIabTklBkgtSZsxV0P59Q== X-Received: by 2002:a05:6a20:748c:b0:1ed:75f4:d285 with SMTP id adf61e73a8af0-1ed7a638a4fmr8182346637.19.1738189582158; Wed, 29 Jan 2025 14:26:22 -0800 (PST) Received: from ?IPV6:2001:ce8:126:2a3a:19b3:5e83:b3b1:3b00? ([2001:ce8:126:2a3a:19b3:5e83:b3b1:3b00]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72fe03f4e7bsm761651b3a.172.2025.01.29.14.26.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jan 2025 14:26:21 -0800 (PST) Message-ID: <8ad98c78-c334-4413-a4f2-e2272e42a3bf@gmail.com> Date: Thu, 30 Jan 2025 07:26:18 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Introducing ELF2.0 To: "Frank Ch. Eigler" Cc: binutils@sourceware.org References: <87plk89flj.fsf@redhat.com> <90e29225-b1a4-4df0-9106-898130e9da82@gmail.com> <20250129030547.GA28508@redhat.com> <20250129174442.GA28899@redhat.com> <20250129185255.GB28899@redhat.com> <2181d624-29ef-4064-8a69-761f4ee2df56@gmail.com> <20250129194900.GC28899@redhat.com> Content-Language: en-US From: The Cuthour In-Reply-To: <20250129194900.GC28899@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > OK, that's a problem, but it's not something obviously solvable simply > by link-time arithmetic. Some things can be resolved at link time, some at runtime initialization, and some only during compile time. In some cases, it might even require gathering all source code to achieve the resolution. What I want to do is to discern these distinctions. > A C++ compiler performs tons of > optimizations based on its compile-time knowledge of layouts of > structs. These don't necessarily show up in assembly language > symbolic expressions at all, never mind in a form that would allow > resizing of things. You are merely stating that access to struct members is inlined and optimized. To that, I can only respond, "Let's give up to a certain extent." Structured programming, and binary tools, are the results of compromises with inlined functions.