From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by sourceware.org (Postfix) with ESMTPS id 359953858D3C for ; Wed, 20 Apr 2022 09:15:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 359953858D3C Received: by mail-qt1-x829.google.com with SMTP id x12so524543qtp.9 for ; Wed, 20 Apr 2022 02:15:52 -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:from:date:message-id:subject:to; bh=WkFSuLvoFHN2iv7szavixs/X7H2rD6RNXfR/ztKy2XE=; b=lm51Z/IJlpemve/2QEg9C0YbNoOI1suQ7jv9gCk3lDqDV0axbiribcZ0o2l5qAv0+B Zq130yoP/xcfLrZ3lSOjnFXqVviz2I4OMq1JQd9DFwx1IjubtCw2qvtpc2ztEOd+J1kV /K8c+MeqNeLU+xEnWTkW7UeKae7YxmIRNdQiRhki6/KNk/uWp5GhOI3gbxLyOK8ddoUW tnW87v6wfTTClENmMj92DYW4BsXn0NSc6ibEQNnUxJbK30lidOiWO5k3fplWGwKR8VyS Yn5klwzUuv0k59xUdMIdLhTPH6OkMbKrkb5pwHPUdBnqJ2mwZqDauMszkPU464c5Nkso Jf7g== X-Gm-Message-State: AOAM531U3w1ipavC6iYk4MBADf80ydqoPZ8zIyELMTpN2obGTF4ivP/8 2IvXma+nGeptvu5y53J5MnuOhMFlE4yYx/q1i8hlmKVv2dnsdQ== X-Google-Smtp-Source: ABdhPJwQWWgT6MEMu3h5nCjaT5L+EXcX/NgHzy80hY9+GFIw6mRNAVqF5zTbaa6TYsORH1A0lh1UpEVrmmYAjwp2P5I= X-Received: by 2002:ac8:5f4a:0:b0:2f3:34b7:56e8 with SMTP id y10-20020ac85f4a000000b002f334b756e8mr5316674qta.110.1650446150997; Wed, 20 Apr 2022 02:15:50 -0700 (PDT) MIME-Version: 1.0 From: Nagaraju Mekala Date: Wed, 20 Apr 2022 14:45:40 +0530 Message-ID: Subject: Issue with debug symbols with garbage collector To: gcc-help X-Spam-Status: No, score=-0.8 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2022 09:15:53 -0000 Hello All, When I enable the garbage collector for the microblaze compiler compilation seems to be fine, but the debug symbols are not generated properly. If we set a breakpoint at 0x0 it is showing some different location, we can see the same in the objdump as well. Disassembly of section .vectors.reset: 00000000 <_start>: * * ****************************************************************************/ void microblaze_register_handler(XInterruptHandler Handler, void *DataPtr) { MB_InterruptVectorTable[0].Handler = Handler; 0: b0008000 imm -32768 4: b8080000 brai 0 for the _start symbols "void microblaze_register_handler(XInterruptHandler Handler, void *DataPtr)" is coming up. If I disable the garbage-collector then everything seems fine. I have used "-ffunction-sections and -fdata-sections" options during compilation and -gc-sections during linking command. Please let me know how to tell the garbage collector to not delete debug_loc information. Thanks, Nagaraju