From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by sourceware.org (Postfix) with ESMTPS id 5F7093939C17 for ; Thu, 24 Jun 2021 04:39:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5F7093939C17 Received: by mail-pj1-x1035.google.com with SMTP id l11so2718554pji.5 for ; Wed, 23 Jun 2021 21:39:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZErSs/6sJ2iiec5uDkhzxDZPWDtE2ePnbM7rgoeXe+M=; b=FEWPNi5MYmXoe7bDHjVTBHJQFOPnbh0cjjwhlBffQNwBetitKuGPRa1sw7J2nxjMXF AB6+Cc+7J3rK/sZcT/EAz5BtTHRKkvO328osUneYnlsPQOL9vLXCfgXjhQ071lr6mwzT BsfI8E+HkRrX0y2WPFkslmaOLsZp3fMRDhI6qacqOrd4SN9rSfbyS4EYVN2v2ds9vwI8 KrSUDIX1pMToppHB0VVmJ5Oj4U9N92mjtB97tV1g6xkBJG4fpTp1Yq/GnFy6L6PWJRIv ttvbxscfbmjYxJTsGFlAs6oP+u4NT7FdYHEGwBvmyl6nWD9ZJUAfDv6Gq8BAuXZ0haiQ 4CXQ== X-Gm-Message-State: AOAM533B5pTFArpViFhcuYCTNKnkeaRZX5UWtXz/AFF6Rc420RrZq7cs 9InEXv29Mnrtw7JTWi4Qv6Q= X-Google-Smtp-Source: ABdhPJwl36QkAOHXh4Apxgv9f+X1wiZVAFmpJHHMgLvZhoLyvsO5wU3jztao4eWYQddSs5tVT6+KLQ== X-Received: by 2002:a17:90a:1941:: with SMTP id 1mr13282677pjh.217.1624509592565; Wed, 23 Jun 2021 21:39:52 -0700 (PDT) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id 69sm1302525pfz.110.2021.06.23.21.39.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 21:39:51 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 46D7E114000B; Thu, 24 Jun 2021 14:09:49 +0930 (ACST) Date: Thu, 24 Jun 2021 14:09:49 +0930 From: Alan Modra To: will schmidt Cc: Ulrich Weigand , gdb-patches@sourceware.org, rogerio , "Carl E. Love" Subject: Re: gdb compile for powerpc64 target - Could not find symbol ".TOC." Message-ID: References: <606184731c3ea9b484a098f393ffd1efd8190fe2.camel@vnet.ibm.com> <20210623153630.GA2224@oc3748833570.ibm.com> <01c0a5da1434349f6118c1bfb9f500fd932c77d9.camel@vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3033.5 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.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2021 04:39:54 -0000 On Thu, Jun 24, 2021 at 12:41:18PM +0930, Alan Modra wrote: > relocations. bfd.c:_bfd_get_gp_value is used for all the TOC16 > relocs, which means elf_gp should be set to .TOC. and you can't leave > the bfd format as bfd_object. Ignore that remark about bfd_object. I had it backwards. -- Alan Modra Australia Development Lab, IBM