bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/23306] Please add feature to nm to display symbol visibili


From: zenith432 at users dot sourceforge.net
Subject: [Bug binutils/23306] Please add feature to nm to display symbol visibility
Date: Mon, 18 Jun 2018 14:29:35 +0000

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

--- Comment #3 from zenith432 at users dot sourceforge.net ---
I'm not sure whether it's based on a formal specification, but here are two
source files

apple_nm.c

Taken from Apple's open source.  The function print_mach_symbols does the -m
format output.

llvm-nm.cpp

Taken from llvm 6.0.  The function darwinPrintSymbol does the -m format output.
 The comments there specifically say the code is intended to mimic the Darwin
-m format, and near the beginning of the file it shows a support for 3 formats
- BSD, POSIX, DARWIN ("Darmin -m format").

The output is for mach-o.  ELF has a bigger set of symbol visibility and other
attributes.  So the format needs some adjustment - cannot be copied verbatim.

I hope this helps.

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