From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa.splunk.iphmx.com (esa.splunk.iphmx.com [216.71.153.223]) by sourceware.org (Postfix) with ESMTPS id 99B793858434 for ; Thu, 12 May 2022 19:13:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 99B793858434 X-IronPort-AV: E=Sophos;i="5.91,220,1647302400"; d="scan'208";a="192214300" Received: from mail-pf1-f200.google.com ([209.85.210.200]) by ob1.splunk.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 12 May 2022 19:13:57 +0000 Received: by mail-pf1-f200.google.com with SMTP id z186-20020a6233c3000000b00510a6bc2864so3020295pfz.10 for ; Thu, 12 May 2022 12:13:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=AbUzVjlXBbS5+IgozFGYdTFXXvoC3j9jcU3gLdLD6bY=; b=p3AdwptCwZmwMV6nzz+y3p0TETGHqMWYVw7Q6C0CyLxKzgc2Hd1ep1SvQiWhPkdBOu yB3S/sfM722Zr8eOKX7QfrJalTPxhQZh2ciUSqXfLdNxu1fOojO4oAZ8g+3rTmfIWaIH BAIrgyPvDLd/j2ytUtEA6qkpDhj+ZIwG8A+08ptQkyr091aGLM9WSSoTJWIkr/YmFHAe Lf03tSEGskjWijz3V/Fq/JjpAgbDok7BW2iprIhQEOmRe/HbIZiW0cAnRm3Fn1xQ9iVS WBN6YFMBBLcmydbcABvQiVBkm9EtqAYVZvebTgbAEUsOMcohJbp10BQ0tBLy5MAV86g4 hHvA== X-Gm-Message-State: AOAM531nO5iBP13XCYxjt8QiBB6atiowHTIsPVpLbQ41RqOl4SobgSZa UtEswakgQkjWjdk9/c/GcOoCwP2Tz7LsTOxtR7MgNnUv/f1ivo3j6SwKfMtNdwCpuw4RqxQEORj pCEps0wE5SmgiWK9ZGRq1dmxeb+1UwLgLKaEa4aqzbU/QApSK1JDtuQdMueuQoW4EnSMOI+8w1Q iPlHQ= X-Received: by 2002:a17:90a:348d:b0:1dd:1779:412f with SMTP id p13-20020a17090a348d00b001dd1779412fmr12074125pjb.18.1652382837079; Thu, 12 May 2022 12:13:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGdipWpmXWC6yBsywiOgUuRGCXec0vX9ih9hj3AyMcigMrLbzxXNPGMpVwemaZti96hJLR2g== X-Received: by 2002:a17:90a:348d:b0:1dd:1779:412f with SMTP id p13-20020a17090a348d00b001dd1779412fmr12074096pjb.18.1652382836697; Thu, 12 May 2022 12:13:56 -0700 (PDT) Received: from smtpclient.apple ([165.225.243.0]) by smtp.gmail.com with ESMTPSA id cp7-20020a170902e78700b001608bceb092sm264396plb.124.2022.05.12.12.13.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 May 2022 12:13:56 -0700 (PDT) From: Paul Lucas Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Cross-compile on Linux for Solaris x86 Message-Id: <30135F64-25DC-411B-A800-6D870BB2AAD9@splunk.com> Date: Thu, 12 May 2022 12:13:54 -0700 To: binutils@sourceware.org X-Mailer: Apple Mail (2.3696.80.82.1.1) X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2022 19:14:01 -0000 Hello - I=E2=80=99m building a cross-compiled gcc and binutils on Linux x86_64 = for Solaris x86_64. The problem is that the executables produced = hard-code the wrong path for the dynamic linker and get killed = immediately upon launch. In elfxx-x86.c, the path for = ELF64_DYNAMIC_INTERPRETER is defined as "/lib/ld64.so.1", but should be = "/lib/amd64/ld.so.1" on a Solaris x86_64 system. I came across this exact problem here: = https://binutils.sourceware.narkive.com/hNh1UFx2/building-a-cross-for-sola= ris-x86-target#post2 That thread is 15 years (!) old and implies this issue has beed = addressed in the binutils 2.17/2.18 timeframe. I=E2=80=99m building = binutils 2.32 and still hitting this same problem. What=E2=80=99s the fix? Thanks. - Paul