https://sourceware.org/bugzilla/show_bug.cgi?id=32256

            Bug ID: 32256
           Summary: [Bug] internal labels present in risc-v
           Product: binutils
           Version: 2.42
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: akhilesh.k at samsung dot com
  Target Milestone: ---

Hi All 

`.LFB`, `.LVL`, `.LBB`, and `.LBE` are internal labels is expected in compiler
generated asm file since these are internal labels i was expecting not be
present in objdump. 

using open source risc-v toolchain observed internal labels are visible in
objdump. 

Is this related with architecture, compiler settings ?
because same settings i using for arm and riscv for arm these are not visible
but riscv these visible 

logs 
akhilesh.k@B0110LHG:~/Activity/L_sections/module$ riscv64-linux-gnu-objdump -d
/home/akhilesh.k/Activity/L_sections/module/spinlock_sleep.ko | grep ".L" 
/home/akhilesh.k/Activity/L_sections/module/spinlock_sleep.ko:     file format
elf64-littleriscv
0000000000000018 <.LVL0>:
0000000000000018 <.LBB13>:
  24:   000080e7                jalr    ra # 20 <.LBB13+0x8>
0000000000000028 <.LBE13>:
  2a:   bb850513                addi    a0,a0,-1096 # bb8 <.LASF527+0x3>
  32:   000080e7                jalr    ra # 2e <.LBE13+0x6>
0000000000000036 <.LBB15>:
  42:   000080e7                jalr    ra # 3e <.LBB15+0x8>
0000000000000046 <.LBE15>:
akhilesh.k@B0110LHG:~/Activity/L_sections/module$ 







akhilesh.k@B0110LHG:$ riscv64-linux-gnu-gcc -v 
Using built-in specs.
COLLECT_GCC=riscv64-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/riscv64-linux-gnu/11/lto-wrapper
Target: riscv64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-11 --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm
--disable-libquadmath --disable-libquadmath-support --enable-plugin
--enable-default-pie --with-system-zlib --enable-libphobos-checking=release
--without-target-system-zlib --enable-multiarch --disable-werror
--disable-multilib --with-arch=rv64gc --with-abi=lp64d
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=riscv64-linux-gnu --program-prefix=riscv64-linux-gnu-
--includedir=/usr/riscv64-linux-gnu/include
--with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to