From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id BACAC3858D39 for ; Tue, 1 Mar 2022 13:29:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BACAC3858D39 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 716491042; Tue, 1 Mar 2022 05:29:27 -0800 (PST) Received: from [10.57.20.251] (unknown [10.57.20.251]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E913F3F70D; Tue, 1 Mar 2022 05:29:26 -0800 (PST) Message-ID: <77e611a2-ed1f-0905-f4a9-17c945503421@foss.arm.com> Date: Tue, 1 Mar 2022 13:29:25 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: R_AARCH64_CALL26 Relocation Error on Ubuntu 18.04 Content-Language: en-GB To: Ra T , binutils@sourceware.org References: From: Richard Earnshaw In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3490.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Tue, 01 Mar 2022 13:29:29 -0000 On 01/03/2022 01:45, Ra T via Binutils wrote: > Has anyone seen this problem on NVidia's L4T (based on Ubuntu 18.04) with a > Jetson AGX Xavier? > > I'm trying to compile Qt 5.15.8, and the opensource Chromium build > (QtWebEngine) is failing with the error: > > "relocation truncated to fit: R_AARCH64_CALL26 against symbol ... defined > in .text section in /lib/aarch64-linux-gnu/libc.so.6" > > The symbols listed are gettimeofday@@GLIBC2.17 and ntohs@@GLIBC_2.17. > > It seems similar to this bug: > https://bugzilla.redhat.com/show_bug.cgi?id=1243559 > > But I could not find a more recent bug. L4T 32.6.1 is using binutils 2.30, > g++ 7.5. > > Sorry for newb questions, if this is the wrong mailing list let me know. > > Regards, > Rad It's not a bug, the linker is telling you that the target of the call instruction is too far away from the instruction. This can happen if your program or library contains too much compiled code. It's most common when code is built without optimization. You could also try building with -Os to reduce the amount of code generated. If all else fails, you might need to partition your code into multiple shared libraries so that each is smaller and less than the limit imposed by the instruction set. R.