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 50DD83858401 for ; Tue, 11 Oct 2022 14:34:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 50DD83858401 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-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-615-Kgki-JY2PzuB-QabUU4J0w-1; Tue, 11 Oct 2022 10:34:02 -0400 X-MC-Unique: Kgki-JY2PzuB-QabUU4J0w-1 Received: by mail-wr1-f70.google.com with SMTP id p7-20020adfba87000000b0022cc6f805b1so3962081wrg.21 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=ZBShsrzfp+NNKUCgfPKuNwaDCGIrBp//4xEIZ6/wH5unHOPbHvlSrmo+jrlIVGDDKc Og6PfS5fGCiFrDPzu6XdCDh4losKze06Oosq0g7i/jsmvMgbie4r5I27eJWsJX92INgA OyT2V1LGp5ygN+LIXYl4QG7hXry7l0xS15cKXZo2qQrHvYCrx3e8i3v0YjIv1pcPeC3r 7YaiI6GmDhzhBaPX+0mwOOlVhvUxla38xBF2HdSQ1jicD4aE9E/DJLMDORiU0r12Tydc coQB+/aiyOvArYKvP9swW8xDawkZ0r9iLmuMAULnX339Lh2uVqkGgw2n9k9c2WCUmVEB AiFg== X-Gm-Message-State: ACrzQf03XWv6H27Hml1+FHaAQyJY/C2Pocgr1jITYiqA2xkIUlw5XR3t yf60/srILTyuGLp6noXLt9RQCwj4Pq8OAlJH/ljXVaaRaLyst4KOg4af44X5WLkHXE8Xz+Vvi5S kztfPFE5oiTMOdFlGcQ== X-Received: by 2002:a05:6000:1ac8:b0:231:909f:a4ba with SMTP id i8-20020a0560001ac800b00231909fa4bamr1959011wry.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=unavailable 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