bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/27585] New: addr2line riscv: Skip empty name symbols?


From: i at maskray dot me
Subject: [Bug binutils/27585] New: addr2line riscv: Skip empty name symbols?
Date: Tue, 16 Mar 2021 06:10:20 +0000

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

            Bug ID: 27585
           Summary: addr2line riscv: Skip empty name symbols?
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: i at maskray dot me
  Target Milestone: ---

Extracted from https://reviews.llvm.org/D95916#2627640 This may be related to
PR27584.

echo 'void _start() {}' > a.c
# Make sure riscv64-linux-gnu-bfd is in PATH.
clang --target=riscv64-linux-gnu -fuse-ld=bfd -nostdlib
-fasynchronous-unwind-tables a.c
~/Dev/binutils-gdb/out/riscv64/binutils/addr2line -fe a.out $(nm a.out | awk '/
_start/{printf "%#x",strtonum("0x"$1)+4}')

??
a.c:?

'??' is less useful. addr2line probably should return '_start' instead.
arm addr2line has logic ignoring $a/$d/$t.

In the absence of DWARF line number information, addr2line uses .symtab to do
symbolization. clang -fasynchronous-unwind-tables causes empty name symbols for
label differences. This should be reproduceable with GCC .L0 symbols as well.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]