https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114431

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Cupertino Miranda <cuper...@gcc.gnu.org>:

https://gcc.gnu.org/g:fa60ac549649655a3f55e69f83d2e97423d3eb5c

commit r14-9677-gfa60ac549649655a3f55e69f83d2e97423d3eb5c
Author: Cupertino Miranda <cupertino.mira...@oracle.com>
Date:   Tue Mar 26 11:59:47 2024 +0000

    btf: Emit labels in DATASEC bts_offset entries.

    GCC was defining bts_offset entry to always contain 0.
    When comparing with clang, the same entry is instead a label to the
    respective variable or function. The assembler emits relocations for
    those labels.

    gcc/ChangeLog:
            PR target/114431
            * btfout.cc (get_name_for_datasec_entry): Add function.
            (btf_asm_datasec_entry): Print label when possible.

    gcc/testsuite/ChangeLog:
            * gcc.dg/debug/btf/btf-datasec-1.c: Correct for new
            implementation.
            * gcc.dg/debug/btf/btf-datasec-2.c: Likewise
            * gcc.dg/debug/btf/btf-pr106773.c: Likewise

Reply via email to