From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by sourceware.org (Postfix) with ESMTPS id E1E66389A101 for ; Fri, 27 May 2022 10:07:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E1E66389A101 Received: by mail-ed1-x52a.google.com with SMTP id er5so4790997edb.12 for ; Fri, 27 May 2022 03:07:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0kaJxDJnUMPQ30TY5EotCe6MakFTWkNxRllP3zO3d8E=; b=ppBVMyShXOe+BbiWDWTeMuZzi39EeRXYpOIWCXHr6VOZ89xtmv562a0MQZPqmjdgCo jJUqdcMfaIuygZIEWmYoAMRUp84onter5Ez9qCs1aiflKaUCzOpQKDzqh9AUKTGDGUty rdQlqOd7awyiAYA9y6puRPRhP0drsaTYIzdXkokOkD/oytj8ejQF4EArpTG2Pc4GrUFj wsbf/B/GXnw5feWw2Zziumss4XkV/sCputBztoiHEfq5/QWMY2c14hh12JFICPTkmltW /Kr5AD5wq5NL84gOzAmM04SKNWm5VbTsm/ag2p0OuarouSTLYQAydOHlpASvqW6Sl6no 7Acw== X-Gm-Message-State: AOAM533f9CTdybfZ66rGq/LBTKe/yvVaXDIHj8gkaGNwhxqp1/Jmh19G ETKBcN4TWEPYE6STfZCDZjjUAQaVjb8WqCOjN/i8LhG/ X-Google-Smtp-Source: ABdhPJzxEmBcyK9yn93mioT6/YEmZcU2eRolI2FAav6xN56v6f1aZKh1hVJYClW06TBdo4xJKUonxcz5d1Ypebji9dI= X-Received: by 2002:a05:6402:35cd:b0:42b:7545:9726 with SMTP id z13-20020a05640235cd00b0042b75459726mr23141505edc.77.1653646049703; Fri, 27 May 2022 03:07:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: umesh kalappa Date: Fri, 27 May 2022 15:37:20 +0530 Message-ID: Subject: Re: RISCV relocs . To: Kito Cheng Cc: Binutils X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Fri, 27 May 2022 10:07:32 -0000 Thank you Kito for the quick reply. Do we need to relocate them to enable debugging and stack unwinding. ~Umesh On Fri, May 27, 2022 at 3:15 PM Kito Cheng wrote: > Those relocations are used in EH frame and debug info IIRC. > > > On Fri, May 27, 2022 at 5:31 PM umesh kalappa via Binutils > wrote: > > > > Hi All , > > > > We build the loadable kernel module ,where we do partially link (-r) and > > for riscv > > > > we are understanding the relocs like > > > > 000000000030 001300000034 R_RISCV_SUB6 0000000000000002 + 0 > > 000000000033 001700000035 R_RISCV_SET6 0000000000000008 + 0 > > > > Currently we are ignoring the above relocs ,is that ok to do so ? > > > > ~Umesh >