From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id 7EAC3385840D for ; Sat, 5 Nov 2022 00:57:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7EAC3385840D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x634.google.com with SMTP id bj12so17234672ejb.13 for ; Fri, 04 Nov 2022 17:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent: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=Se7h38vK+K6z4Z02wV9ceZ1om90h3ypi2K0VLvP2NIE=; b=jfLuiLgxAr/HWPBGmgmsnTKeQeX48RK0d91qmurj0QWgXkvjvzeAL2Ks4z/zI3a2ei /xnk5s2emmviqOyrGEWNq+Hq6um/ycgfWIP8iD599G0ZjeTKfEuHmF/uTHKKif6cSqfC io5mYLbMgKh5hRykcUdKnYOg8JoRhLoEdTphy1SNIqxWxwari2R/8xScmUlgvxA3BSz/ irt4Ew6wWAkFYyInwMT3MJHe0mKLE6BbtSSx9xiJNz/Fpzx/lgZ4USFVAlJillfvbGPV 8MdJg2mGKWTZNMxyb6FnsW8PhARyz6ye25EaeYb7QebllCybIz07R4JN8UDCovHPWxXk 4duA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent: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=Se7h38vK+K6z4Z02wV9ceZ1om90h3ypi2K0VLvP2NIE=; b=5viKsC32Wklq7lqE/vFcgUcbVvLciLr1BEUzc/ggMpY9mTW/yJf8CWu0v7frNLmPJE /EvTqneK0ZFfs7Myd6NbjAe5bkDILWcwMwJTwnyDqHti8OYTX0uqwyyO170sq2lMqVSv Cdm8/XUdPVfus84Tz2vedxK9bBvogwWcJZzgKIYOvd8gsukYQfrLwX75ZhAbrY/U5CSl tQfKWEpVR63b4Z3CZ+TVr28Ptg7pYNJr/UxrUkmUZiUjxlsfJl6Dl04NAoQk4ch4ba/8 gE+23eEgrXgiohGiJ946SrSYDvhyjMvjtM3txk+v0X5KcfEjSzWM4HwfigHWgZ9dfWNc Nx1w== X-Gm-Message-State: ACrzQf0SJsmudSwm+XxVv0tvybh1m2VTKTO8fqtGsGxij/PJ0v+B8WIW ms4WJriUWQloPgIkIe9iU5Q= X-Google-Smtp-Source: AMsMyM5KAmJ6G9NUoqAx0ceAzhH2wjZ+nQFFV1oVMcVUbQTC7QpAtt3WDhEcjjjijB0V2juriil0mg== X-Received: by 2002:a17:907:970b:b0:78d:8d70:e4e8 with SMTP id jg11-20020a170907970b00b0078d8d70e4e8mr35416001ejc.614.1667609872221; Fri, 04 Nov 2022 17:57:52 -0700 (PDT) Received: from pali ([2a02:2b88:6:5cc6::2f]) by smtp.gmail.com with ESMTPSA id z11-20020a170906074b00b0078dd4c89781sm235684ejb.35.2022.11.04.17.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 17:57:50 -0700 (PDT) Date: Sat, 5 Nov 2022 01:57:49 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Jan Beulich Cc: binutils@sourceware.org, gcc@gcc.gnu.org, mingw-w64-public@lists.sourceforge.net Subject: Re: Problems when building NT kernel drivers with GCC / LD Message-ID: <20221105005749.3ultigucvhqoikvx@pali> References: <20221030000611.ytfadi4f2xcvodey@pali> <9c878a09-fd84-325c-771a-65d88aff7282@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9c878a09-fd84-325c-771a-65d88aff7282@suse.com> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-1.9 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: On Monday 31 October 2022 10:55:59 Jan Beulich wrote: > On 30.10.2022 02:06, Pali Rohár via Binutils wrote: > > * GCC or LD (not sure who) sets memory alignment characteristics > > (IMAGE_SCN_ALIGN_MASK) into the sections of PE executable binary. > > These characteristics should be only in COFF object files, not > > executable binaries. Specially they should not be in NT kernel > > drivers. > > Like Martin pointed out in reply for another item, I'm pretty sure > this one was taken care of in bfd already (and iirc is in 2.39). You > fail to mention at all what versions of the various components you > use. Ou, sorry for that. I take care to write issues in all details and totally forgot to write such important information like tool versions. Now I retested all issues on Debian 11 which has LD 2.35.2 and GCC 10.2.1 and all issues are there still valid except data characteristic IMAGE_SCN_CNT_INITIALIZED_DATA for code sections IMAGE_SCN_CNT_CODE. I can easily retest it with LD 2.39 and GCC 10.3.0 which is in Debian testing. > I guess before reporting such a long list of issue you would > have wanted to test at least with the most recent releases of each > of the involved components. I wouldn't exclude some further items > could then be scratched off your list. > > Jan