From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 389A43858403 for ; Mon, 12 Sep 2022 18:27:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 389A43858403 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-x630.google.com with SMTP id r18so22182901eja.11 for ; Mon, 12 Sep 2022 11:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=LwhjHRNbajRAi7ewcI/9EyaruAzPwt7B0cIMXbXwuRA=; b=DS+Q+dIz/tAOu/LMkpXD8N69zie6V4lyjwnEdtBJaL2zETN9GCD2o3+a88Vzdv4IF+ 8O73RqrP98Zr0rDwKulDzbBsVeoGhf10tiCu9HqpOh8WMspX/4fTu/jeRAsoInQWundv 4eiWaH0PjwWuqJWYDbLlweHF189VG2yooO2gA0spFBsEQtJ0BGwWcEB7lAMjQEpLWgg4 pdgSxR+kIoWIZgX6Z9aQc57Upn3vS/fHkP8aR8Hg7Bbopo62yyScTGsHQ38auRZmGISu ZHf4HnhWAfM4CDPTef+2OLkCUjahjQSwwiDX69A+nF+ITxDnlwZeyb3jgWjOp1rZlpU6 CUPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=LwhjHRNbajRAi7ewcI/9EyaruAzPwt7B0cIMXbXwuRA=; b=X/bWnBGVUC0U30wVEWiiTZTzfPjeLTADnzu8eVCmsaq23M+PJBdSYq7OOe/9bLV83b s/dpmiGfmDEzFYcrMyrbuicaHKBQpmy/gv9ujSXmFuXHeO2+0CX9B0aNInnsibx1TpiI EoLABkuqPW4JnAdW3xsoJQ2UZuOLcV59cVEIcDQ8PzlLmQM3k+RK9WJalzRjBhDatmiR g6V6ZR/zHpqIwDhB43o4o39VQIo/Iam9txhmYTWCfpk8a05zWpkCkj0pqqFC4kgCNkyI Qd97JyLR9XqdYHFFCwPtO0vt6PCIiodci2q1CdDyNa3sVh+B1fpUnbOlVXaYwpPnNGNV JtPQ== X-Gm-Message-State: ACgBeo1HHhmFfeekLiRRlmotevJ4rGCv5rikDYDubWz5C7aQ8KZTdxoy oNPe0gPp/fv5Z6sokAZziQxt2Il7MgeK+IutQN9cZBm9LuA= X-Google-Smtp-Source: AA6agR74QXmpgz1kJn64zkk3ynt86RB40hjHtljOH8Pz3P3Wkrne6QnygiY7QZb9JXPI20CJ1myrQYoZfXG7h7Kqt8s= X-Received: by 2002:a17:906:6a0f:b0:779:2fc:9a51 with SMTP id qw15-20020a1709066a0f00b0077902fc9a51mr13928263ejc.101.1663007255439; Mon, 12 Sep 2022 11:27:35 -0700 (PDT) MIME-Version: 1.0 From: Tom Kacvinsky Date: Mon, 12 Sep 2022 14:27:24 -0400 Message-ID: Subject: .relr.dyn, binutils 2.37 and glibc 2.36 To: Binutils Content-Type: multipart/alternative; boundary="000000000000b82fd805e87f0c62" X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000b82fd805e87f0c62 Content-Type: text/plain; charset="UTF-8" I have seen lots of stuff float by on the glibc and binutils list about changes to each related to relocations. My I've lost track of what changes have been made. I am not sure if this should be posted to the glibc list or here, so I am trying here first instead of cross posting. I have a colleague that is using a glibc 2.36 based system and is using binutils 2.37 (one that I built from source, not the system ld). This is the error he gets /opt/binutils-2.37/bin/ld: /lib64/libc.so.6: unknown type [0x13] section `.relr.dyn' But then he follows up that while ld.bfd doesn't work, ld.gold (i.e., -fuse-ld=gold) does work. My recollection is that the changes made in the newer versions of glibc for relocations required a newer binutils (2.38, I think). So, what binutils should we be using? And why, with 2.37, does ld.bfd croak, but ld.gold does not? And yes, I know, if it is a really new system, we should be using the system binutils for compatibility. Doing things from source is a vestige of the fact that our automated build machine is ancient, so a lot of our tool chain is built from source. Thanks and regards, Tom --000000000000b82fd805e87f0c62--