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 DFBB3385800A for ; Sat, 26 Nov 2022 19:04:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DFBB3385800A 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 i10so16966295ejg.6 for ; Sat, 26 Nov 2022 11:04:49 -0800 (PST) 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=BvPm/gESAErq3jURWdz7NdTPc3gis7HV9nj5ODxEUpM=; b=osHh5uJmF+HOtJOE58M2El6dm8uKIUTFxDixPQgze925quM/bRMfh/n0ApdTx/PFnd EyLWn8pIfIsDnadYgHYG4ZBJkhLqgHXU0kBhmPRZ8PbDG8GOWjZXrcS+Jf7dp7D43rIO VO39rlkhaG8Ug21kJq4SmScy5cFbsbZiq05mGb7d7qPK/cK2JWLtDlnNj/d6cjxbp6zQ 21kVBXOtszeO8QZHRZ53sdKZbufb+lR2/lVy1qTtjRK9jCuN5q7XIpCA+1EUPZGt/MDq +OkTQ+JTuZ1JZ3uNzx+Jc4QSL2tRwrjUbPa43WvTD3a1DsAgk0QsxGxV/xhrJZjsWvLB 8nSQ== 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=BvPm/gESAErq3jURWdz7NdTPc3gis7HV9nj5ODxEUpM=; b=crNKxz3uHwdjopphaRHPAVi+C3R9HhNnVg6m+MkUp+osS2gpXn6oH9gC8I63d+8Rmj 61Hs9M4YsZgFOOxDrHX24lcLRWnRXc4pK2K2oLB9PtNcmq9f/ohVx4cZcjO44Fwg+SK5 w8Wosqq9EH4PIeJ8XH7FsirqcAt2lwNxUpTx/QHyPVbuyDN2AE9NaJhEdjrFQwxhd4oV W+k2pw701NbqGX+FLKfmJmAVQco5vUxcXQdEHp+C4nj9HAct8Bv0I4NWPghgcelqc1uZ /LNctdvYWS3d8NbHR2tXlq7n/y6QIrDXnDRT0S0NxCay9gWb5YijFoEENT0F5LtFIjUA xzZQ== X-Gm-Message-State: ANoB5pnGNo/MfD9T5UhXRcmajd8lbrM6tTyu3YdVGhwcCiwfmxeifwvE QZGuDrfzWmIkXfvNUIul4FE= X-Google-Smtp-Source: AA0mqf6dnfpmXIDmZmUSNVM2NjDiLwCPVIXzdI/DA+0dPaetlFylH/daAEf9Q/9i7HPD1T9ARz1GKw== X-Received: by 2002:a17:906:7ac8:b0:7ad:c8d6:bc7f with SMTP id k8-20020a1709067ac800b007adc8d6bc7fmr36862252ejo.118.1669489487768; Sat, 26 Nov 2022 11:04:47 -0800 (PST) Received: from pali ([2a02:2b88:6:5cc6::2f]) by smtp.gmail.com with ESMTPSA id 13-20020a170906328d00b007b27fc3a1ffsm1153188ejw.121.2022.11.26.11.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Nov 2022 11:04:46 -0800 (PST) Date: Sat, 26 Nov 2022 20:04:45 +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: <20221126190445.z6kfhqkeesusmuae@pali> References: <20221030000611.ytfadi4f2xcvodey@pali> <9c878a09-fd84-325c-771a-65d88aff7282@suse.com> <20221105005749.3ultigucvhqoikvx@pali> <20221105012652.e4x5xm7lhrd4rgbn@pali> <20221120131057.mwk4nkl53vs4nygo@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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=unavailable 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 21 November 2022 08:24:36 Jan Beulich wrote: > On 20.11.2022 14:10, Pali Rohár wrote: > > On Saturday 05 November 2022 02:26:52 Pali Rohár wrote: > >> On Saturday 05 November 2022 01:57:49 Pali Rohár wrote: > >>> 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. > >> > >> Retested with LD 2.39 and GCC 10.3.0 which is in Debian testing and > >> following problems are additionally fixed: --exclude-all-symbols, > >> --dynamicbase and IMAGE_SCN_ALIGN_MASK (which you mentioned above). All > >> other still reminds. > >> > >> Do you need some other information? > > > > Hello! I would like to ask if you need some other details or something > > else for these issues. > > Well, generally speaking it might help if you could provide smallish > testcases for every item individually. I have already provided simple test case - simple driver - it is linked in the first email. > But then, with you replying to > me specifically, perhaps you're wrongly assuming that I would be > planning to look into addressing any or all of these? My earlier reply > was merely to point out that _some_ work has already been done ... I added into CC also gcc, ld and mingw mailing list. If this is not enough, could you tell me who to contact about those issues?