From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id ABCE13858005 for ; Mon, 24 Jan 2022 18:56:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ABCE13858005 Received: by mail-ot1-x32c.google.com with SMTP id v8-20020a9d6048000000b005960952c694so23478675otj.12 for ; Mon, 24 Jan 2022 10:56:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:references:in-reply-to :content-transfer-encoding; bh=axGmffn9xOGpNA6BAV45ZqHnmPX4u8/Nqqkj/PPstsY=; b=PXCLLV63lyig7bmsntkbizGDicHb9eoipjfkiVjEofdXvz6T3SJmvRryWXuN9xz1/K CpjFYVmEPUYJ4MR0N4ysLeOSw/izmOtd8K9YsTgV5WK8d9iH7L/5cMc8hilwG02GIXCO 8T4Vmg9kv7DGC02ThIkxFuAbLsKOVVouSLP76xNU3KGTJFBmq7sEdp+Jn6U8mrgtvucr ETu0n0y9ih11s28cERVGRkeHNyBgF6vbogIrTEDCrH5Ur87fljotE/xSaZEJHNBGRxTr 4OxeVYmNNQuM3PBRBd+GZuwK3ruyBWm4vvzD9k2L+OOe703pSKfuxNCKYTwbr2+tNmE0 oEjA== X-Gm-Message-State: AOAM531jZTQCao5vkQOpLOvDseUz+cYJCZVXoHyg61rt6yyU/HzhXmZi 4WgMiNEJNEhUuNCZVdWL6G9XnXYqDLBLDw== X-Google-Smtp-Source: ABdhPJyhAaz2UXLySRq6F6ivwdqrfvkkSU8vZhDJw/SmvOb/btOPzxUPxJkzZsw4uY0mo/GBzjlCqA== X-Received: by 2002:a9d:601a:: with SMTP id h26mr3103702otj.357.1643050561867; Mon, 24 Jan 2022 10:56:01 -0800 (PST) Received: from ?IPV6:2804:431:c7cb:27f8:c505:63c0:de61:b716? ([2804:431:c7cb:27f8:c505:63c0:de61:b716]) by smtp.gmail.com with ESMTPSA id v26sm2254680ooq.20.2022.01.24.10.56.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Jan 2022 10:56:01 -0800 (PST) Message-ID: <9ac94bc2-a7aa-decf-290f-c995a156c058@linaro.org> Date: Mon, 24 Jan 2022 15:55:59 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 0/3] Remove prelink support Content-Language: en-US From: Adhemerval Zanella To: libc-alpha@sourceware.org References: <20220121172951.285848-1-adhemerval.zanella@linaro.org> In-Reply-To: <20220121172951.285848-1-adhemerval.zanella@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2022 18:56:04 -0000 On 21/01/2022 14:29, Adhemerval Zanella wrote: > As discussed recently on maillist [1], prelink is deprecated in > practice: > > * There is no active development neither maintainace. > * It misses supports for some architectures, even for architecture > wildly deployed such as aarch64 [2]. > * It does not work with recent security hardening such as PIE. > * Nor it will work on future ABI additions such as DT_RELR. > * Even when PIE is not enabled its coverity if flacky, with some > binaries showing corrupted state [3]. > * Recent glibc changes to support different tools (such as lld) > showed inherent issue with current prelink support. > > The first patch removes both prelink support by the loader and the > LD_TRACE_PRELINKING. > > The remove of mtrace TRACE_PRELINKING usage is on its own patch > because it changes LD_TRACE_LOADED_OBJECTS semantic to support > dumping the executable loading address and fixes mtrace for non > PIE similar to BZ#22716. > > Finally the third part removed LD_USE_LOAD_BIAS, which is used > solely for try support prelink with PIE. > > [1] https://sourceware.org/pipermail/libc-alpha/2022-January/135520.html > [2] https://sourceware.org/pipermail/libc-alpha/2022-January/135522.html > [3] https://embed.endfa.net/yocto-cross-prelink-1/ Based on Weekly Call discussion, I will postpone it to 2.36 and sent a note that 2.35 is latest release that will support prelink.