From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by sourceware.org (Postfix) with ESMTPS id A7FAF396DC0C for ; Sun, 20 Nov 2022 13:11:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A7FAF396DC0C 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-ed1-x534.google.com with SMTP id z18so12899200edb.9 for ; Sun, 20 Nov 2022 05:11:00 -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=2jAEzY1/qHZBimLUIMq6g3kK8ObvOkpAafljVdGml9Q=; b=jAdhN64Nq6S0Tw1Eqz9WaS8AC5deZs19mz/SwoIBxz+whBOMebw0CUynKuPZPhmG1K 8Sti6mJFGToOLM+JIJyrhHSqNc/E78ArGx/adrDMG8GYbCGwpoNKEO4doxlj6er3O6Y2 +6sHnMxGrBr6Y1tXoSsdOQ5iE63DKQF5EduTWp5c4h5xHKvz7XUlnZldHOkyABIHs+S0 uiIse9U3UZ88KH3uVAWQnV2O4GFrfgLc/ERQqLiGbxITDH9hXfBlweiGWM674y1Jq4KL 6dhxssQYcNPz1SPGq5gkTbOu9Ydy9Aaqydl1N20AsxiHjFTbnSTzsA+qlqN3e5poRb8J UvVw== 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=2jAEzY1/qHZBimLUIMq6g3kK8ObvOkpAafljVdGml9Q=; b=1Q+rTkfh3UnLlTEAxepgjVzExu5OYx6+7erR1iRXHns1Zy0hOPJPaYN75TucNTaxgQ 2PiljN5+EK3eMckHeI5A54XT3t567nPmMMiv6Lo23kIO4hrXDL3k7Jr4k+yvJD2s+QbH NM+N+NUjgTT3be7GZLsPd223hHbXYP7664ea9iPABD9I7UIVA8iw/ZCuk6p2sNO5qqzf YFzxBa7TBlOjEcOJ1xS9TJuaaUZFqatHpXNsD/bLrEwajtaqYOZ3cObjeFz1e/UEAMGq WphwQA7OX8rBXjmL1Kq2ozUKOo0PAo6TCWKCqYuDPeFoHQs3xdWOIP9Ro67NmrMPB0j7 nOQQ== X-Gm-Message-State: ANoB5pk3+57mjKKvE67xHbD7jd6Q2QekUIHBNS+uBI95TrLiYxn6dBfS fMLxRqW00ZykWiqXh31Z2iw= X-Google-Smtp-Source: AA0mqf7VskfzTQrx/PAZ6QmaJY6kcVgQvTCU0bLDaw9duQTmuExDRtnNvCnPuUO7wpfPksnz7WCg5w== X-Received: by 2002:aa7:cc04:0:b0:463:1a0c:4dd1 with SMTP id q4-20020aa7cc04000000b004631a0c4dd1mr3219365edt.137.1668949859294; Sun, 20 Nov 2022 05:10:59 -0800 (PST) Received: from pali ([2a02:2b88:6:5cc6::2f]) by smtp.gmail.com with ESMTPSA id a13-20020a17090682cd00b0078d424e8c09sm3893395ejy.77.2022.11.20.05.10.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 05:10:58 -0800 (PST) Date: Sun, 20 Nov 2022 14:10:57 +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: <20221120131057.mwk4nkl53vs4nygo@pali> References: <20221030000611.ytfadi4f2xcvodey@pali> <9c878a09-fd84-325c-771a-65d88aff7282@suse.com> <20221105005749.3ultigucvhqoikvx@pali> <20221105012652.e4x5xm7lhrd4rgbn@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221105012652.e4x5xm7lhrd4rgbn@pali> 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 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. > > > 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