From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 0B0713858C2D for ; Tue, 11 Oct 2022 14:34:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0B0713858C2D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665498843; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WCbeMU1c+sAWh6gFpltAaz/+TZ5dTAg2JMJmCXi6wjs=; b=I18vsdtccMu/tZSTWVJvUXUTzsoxAC+478bVPEoGGyABI1gpxMLyZfA3i8SRw0RYtu2zAB OCGj2Z+12XwYIvVfR1kbtNFzQs8/NN9hIece/uecCEu2qdZh8sH83tmoXCLKDxDMOQ1yRm bKpnLqj0Y4rdP1ojOc1dwBZ6buEE4YM= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-489-BR8SsOEQMJ66CS-zoo_7hA-1; Tue, 11 Oct 2022 10:34:02 -0400 X-MC-Unique: BR8SsOEQMJ66CS-zoo_7hA-1 Received: by mail-wm1-f71.google.com with SMTP id k2-20020a05600c1c8200b003c3dd3aa638so6062429wms.1 for ; Tue, 11 Oct 2022 07:34:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WCbeMU1c+sAWh6gFpltAaz/+TZ5dTAg2JMJmCXi6wjs=; b=hcOfeDf3Ibc4AL6QQOv4dp0Sq38qPT0d68jlxho6Od4s5q/0V0UuJeM09n/GPG7Gyq 2D6mPVrN2/kX/BANpZdGpiMzc3L7KMBxDYsmoyaE2Ulhii77g9PeZ/ZplLW87EGquqf4 wzVqpX9/QgpUyUoNPTafph3dsyWfGzg96FGxAGjQnSEFV4MDsl4RxelNcgvxFz8Y/jxr 81eWfnvVhDyEY/zyNJluWyAPGVsR7MraQ33fA/0GgSF61TK3sSwdaY0SoIjJPrs3Nono 6tODRJjOrmca9krh/C6S79zFuJmSWtS4MZzEQNJWx6fXYbzVX44QDgmj/MCa1ffe0m9i qz2Q== X-Gm-Message-State: ACrzQf2W/BkfkdSOKOyHZUWTpSHtlDCdeFK7QpkzeEgcTACI5s5WSoDV ZPjLNPKEgtMa2qTiPjOvPJiD7ptYMpNbAK5hPn5t97d1B+ZQWGCt9LfQ20ap1EPAwaZmxswbHRS nUy0JY0E= X-Received: by 2002:a05:6000:1ac8:b0:231:909f:a4ba with SMTP id i8-20020a0560001ac800b00231909fa4bamr1959012wry.675.1665498841338; Tue, 11 Oct 2022 07:34:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM50OJQAE6I4iZ7bGUXt+8q3yrZcfgFAF35gsc8333zBsf8yzkKT7bjIUxfc4tDgNwkFxe11jg== X-Received: by 2002:a05:6000:1ac8:b0:231:909f:a4ba with SMTP id i8-20020a0560001ac800b00231909fa4bamr1958992wry.675.1665498841056; Tue, 11 Oct 2022 07:34:01 -0700 (PDT) Received: from [192.168.1.18] (adsl-164-85.freeuk.com. [80.168.164.85]) by smtp.gmail.com with ESMTPSA id n24-20020a7bc5d8000000b003b6b3202e22sm18241927wmk.33.2022.10.11.07.34.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Oct 2022 07:34:00 -0700 (PDT) Message-ID: <5d886f55-0efa-0d0c-8edc-26cfe5cd4d09@redhat.com> Date: Tue, 11 Oct 2022 15:33:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: Error: attempt to get value of unresolved symbol `L0' To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: Richard Biener , gcc@gcc.gnu.org, binutils@sourceware.org References: <20221010171809.oqecrrdguv5hcta2@pali> <20221011074309.ojqoxwsosm6v7ozc@pali> <20221011105714.r5x7x4x5xsi7o7pz@pali> From: Nick Clifton In-Reply-To: <20221011105714.r5x7x4x5xsi7o7pz@pali> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Pali, Hi Richard, > Having file name and line number would be also useful as it took me > some time to figure out where is the issue... Right - I have tried a little harder and come up with a follow up patch. This is now checked in, and given an input file that looks like this: % cat t.s kernoff: .set KERNEL_OFFSET, 0x40000 .set CONFIG_SYS_TEXT_BASE, 0x80008000 .word 44 .word KERNEL_OFFSET - (. - CONFIG_SYS_TEXT_BASE) .word - (. - 0x80008000) .word 0x40000 - (. - 0x0) The assembler now produces the following output: t.s: Assembler messages: t.s:5: Error: expression is too complex to be resolved or converted into relocations t.s:6: Error: expression is too complex to be resolved or converted into relocations Note - some targets do support applying multiple relocations to a single address, but even then there can be expressions that cannot be resolved this way. That is why the error message refers to "converted into relocations" rather than just "converted into a relocation". Cheers Nick