From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8048 invoked from network); 23 Jun 2022 02:13:06 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 23 Jun 2022 02:13:06 -0000 Received: (qmail 7973 invoked by uid 550); 23 Jun 2022 02:13:04 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 7907 invoked from network); 23 Jun 2022 02:13:03 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hEBLtaaON53v/pNIdSTutAL+R3tQ2VxjESjlhwogWY0=; b=l9gWDDD75CM+DVJIyl8f6c0V7lJqfFYKMjnrPWKW/QvmwsiocPXZ0sFdw+nYcMd8Cj DZWUEhjEg+jR/9WXUuJHrgtrFBR+Yx7MQ2xpt2qCj9JPfhbpAiph+ppyQC3e1SMRV3a6 C8inWAybDr238tjAqUtBc5aBnISy8xUp+xB3rcevoOzv8r9o36HG4+Ki92IpJn5Q33BZ IRJ4Yt37VDdMz86PYGdpfDmKQWoDVp3IQPgJPSugc5LjmTsskWojLxvLBag4Gfu9hWWt 54hJJWXszG3arBZnhSIbRXR+IsbVn2WDco++sFmFC0lfhGn70hruHdfOmtD7YhLr7EZC ke8Q== X-Gm-Message-State: AJIora/U2Uu7+OSe4FyKU2X+/nXtvJwtxpR6bnvUA0BKmP+meTPGVtVN fbjdgULo/0+kHdEIcFewdC+eETrFCug= X-Google-Smtp-Source: AGRyM1sgmFiieFmVppT/08i/Wv45ucrv9z3Ra9D4D1b1t1vrK7uf1j+3OxJ8QNTyphBq9o0fb8k1MA== X-Received: by 2002:a17:902:7604:b0:168:cca6:1b38 with SMTP id k4-20020a170902760400b00168cca61b38mr37271591pll.174.1655950371477; Wed, 22 Jun 2022 19:12:51 -0700 (PDT) Date: Wed, 22 Jun 2022 19:12:50 -0700 From: Fangrui Song To: musl@lists.openwall.com Message-ID: <20220623021250.7k5nab7kgidouzbw@gmail.com> References: <20220606061633.539208-1-i@maskray.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20220606061633.539208-1-i@maskray.me> Subject: [musl] Re: [PATCH] ldso: support DT_RELR relative relocation format On 2022-06-05, Fangrui Song wrote: >this resolves DT_RELR relocations in non-ldso objects. > >generic-abi pre-standard for DT_RELR: >https://groups.google.com/g/generic-abi/c/bX460iggiKg >FreeBSD rtld added DT_RELR support in 2021-08. >glibc added DT_RELR support in 2022-04. > >Since ld.lld 7, --pack-dyn-relocs=relr can generate DT_RELR. >Since binutils 2.38, GNU ld's x86 and powerpc64 ports supports -z >pack-relative-relocs to generate DT_RELR. ld.lld 15 also has the option. Ping