bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/27487] New: nm: Add --just-symbol-name


From: i at maskray dot me
Subject: [Bug binutils/27487] New: nm: Add --just-symbol-name
Date: Sun, 28 Feb 2021 20:50:37 +0000

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

            Bug ID: 27487
           Summary: nm: Add --just-symbol-name
           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: ---

llvm-nm supports --just-symbol-name which omits the address and the symbol key.

% llvm-nm -D --just-symbol-name =cat
_ITM_deregisterTMCloneTable
_ITM_registerTMCloneTable
__ctype_b_loc@GLIBC_2.3
__ctype_get_mb_cur_max@GLIBC_2.2.5
__cxa_atexit@GLIBC_2.2.5
__cxa_finalize@GLIBC_2.2.5
__errno_location@GLIBC_2.2.5
...

% llvm-nm --just-symbol-name a.o 
__llvm_profile_filename
__llvm_profile_raw_version
__profd_foo
__profd_main
foo
main
puts

Without the option, the user can pipe the output to cut

% nm a.o | cut -c20-

20 needs to be tuned for ELFCLASS32.

-- 
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]