From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38910 invoked by alias); 13 Feb 2020 06:58:01 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 38865 invoked by uid 89); 13 Feb 2020 06:58:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=casner, Casner, digging, stephen X-HELO: mail-pj1-f52.google.com Received: from mail-pj1-f52.google.com (HELO mail-pj1-f52.google.com) (209.85.216.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Feb 2020 06:57:59 +0000 Received: by mail-pj1-f52.google.com with SMTP id r67so1969813pjb.0 for ; Wed, 12 Feb 2020 22:57:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1qhOtlMfuQCm6iGC8/7h+RLCX3Ya/HdADHBCwSmlDY0=; b=ASrQREW10tSLTFPqruQfCX2RRdM1RQMxZY3cGDjnc7tcFucb0yczIVZrs0uqjSNH57 4Pe6K4fsGhvoMkztL2viW3rOIj3AjUJVsBPSXbonm+71CG/YH0tD31pPz+uOv1NpPNno jvecptSX3v6UZFG3yDi+C0ZzEi96YofW86MlBC838GbGUKFYJqUf70898AA/sLtbKKBl 93kXsMJ5WHtLoYPsWunvgwfdcaod+xZ0hpVumlONjq/ArV/7f8JNQrKztrP43crsp3GZ hBXnhIE5LtasSkRiUryyiSqE5YBskivMgozePK2b7FEEfpFWBZhUwFupJYzzt2ruUSwj 7QxA== Return-Path: Received: from bubble.grove.modra.org ([2406:3400:51d:8cc0:f001:cc1f:fd45:a375]) by smtp.gmail.com with ESMTPSA id j4sm1460393pfh.152.2020.02.12.22.57.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2020 22:57:57 -0800 (PST) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 852498AD3B; Thu, 13 Feb 2020 17:27:53 +1030 (ACDT) Date: Thu, 13 Feb 2020 06:58:00 -0000 From: Alan Modra To: Stephen Casner Cc: binutils@sourceware.org Subject: Re: Problem with ld for PDP-11 Message-ID: <20200213065753.GD29647@bubble.grove.modra.org> References: <20200213002635.GA29647@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00241.txt.bz2 On Wed, Feb 12, 2020 at 10:02:02PM -0800, Stephen Casner wrote: > So now I went digging my way back through the code sequence using > printfs to find where the original data size gets rounded up. It > turns out that the size of the data section is always even because the > assembler "as" or "gas" always pads the data section with a zero byte > if the size is odd, so the object file header always contains an even > size for the .data section. That's because there is always relocation > and symbol information following it. > > Therefore the size of the .data section in ld is always even No, a linker script might contribute to .data output. -- Alan Modra Australia Development Lab, IBM