nm Questions

3

I'm using some LLVM tools (like llvm-nm) as static libraries. I.e. i copied source llvm-nm.cpp, renamed main(..) to llvm_nm(..) and compiled it as static library. I'd like to forward standard outpu...
Highjack asked 11/10, 2014 at 17:14

3

Solved

I've long used cygwin's nm command for all my .lib symbol debugging needs, but recently I thought about referring to it in a SO answer and realized that most Windows developers don't have cygwin in...
Intermix asked 17/12, 2008 at 17:8

1

Solved

I have some binary .fic files in a proprietary format , I have a wd250hf64.so from this vendor that contains a C++ method CComposanteHyperFile::HExporteXML(wchar_t* const path) that I can see using...
Theism asked 29/12, 2021 at 23:39

1

Solved

I am trying to make my software available on macOS, and in my toolchain I use the ldd -r MyModel.so command to verify that everything went well, but I can’t really find an equivalent command on mac...
Dyun asked 16/3, 2019 at 11:5

2

While I was trying to resolve a problem in static linking, I encounter a couple of _GLOBAL__sub_I_ prefixes in front of symbol names. It appears in that form although I used nm --demangle(-C). I s...
Ouzel asked 29/7, 2015 at 4:33

2

I am having an undefined symbol error at runtime, and when I look for the symbol in the relevant library, I get the result: nm -C -D /home/farmer/anaconda3/envs/general/lib/python3.6/site-packages...
Lam asked 16/11, 2018 at 21:38

2

Solved

I have a code like this in mylib.h, and then I use it to create mylib.so. Is there a way to check how MY_MACROS is defined in .so? #ifdef SWITCH_CONDITION #define MY_MACROS 0 #else #define MY_MA...
Different asked 2/9, 2019 at 13:32

1

Solved

I need help in removing known mangled selectors in my iOS app. Apple rejected my app stating: Regarding Guideline 2.3.1, this app is verified to contain mangled selectors such as - x7kQPFEZS4af59m...
Lavettelavigne asked 14/2, 2019 at 5:22

1

Solved

Preconditions A third-party has provided a C++ executable fooapp that uses a shared object libfoo.so. The library also comes with a header foo.hpp so developers can build other applications: /* f...
Prescind asked 23/1, 2019 at 17:39

1

Solved

I've built a simple program like this: g++ application.cpp -o application.exe and then executed the command; ldd application.exe ... libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 ... I want to ...
Samara asked 5/1, 2019 at 13:34

2

I can print list of exported function of one *.so file like nm -C lib/libopencv_ml.so and then find my function like nm -C lib/libopencv_ml.so | grep myfunction but when I want to find function...
Derm asked 24/8, 2016 at 8:2

0

Take the following source code: struct Foo { Foo(){} }; Foo f; When compiled with clang++, it creates a single symbol for the constructor: clang++ -c foo.cpp nm -C foo.o | grep Foo 00000000...
Ileus asked 7/7, 2016 at 4:28

1

I have two files 37064544_p1.cpp & 37064544_p2.cpp with the same content as shown below : int add(int x,int y) { return x+y; } I compiled them using g++ -c 37064544_p2.cpp -o 37064544_p2.o...
Computerize asked 6/5, 2016 at 6:29

1

Solved

Thats my code: int const const_global_init = 2; int const const_global; int global_init = 4; int global; static int static_global_init = 3; static int static_global; static int static_function()...
Merit asked 20/4, 2016 at 14:18

4

Solved

I am trying to process the output of a nm or readelf -s on an executable. However, I am having trouble differentiating static functions from each other in the output. Here is what I am working wit...
Scherle asked 8/6, 2015 at 16:38

1

Solved

I'm struggling with the right command to do the following: find all shared libraries (*.so) that contain a certain symbol. This is what I've tried: find -iname '*.so*' -exec nm {} \; | grep -H _...
Heads asked 20/4, 2015 at 22:31

2

Solved

I have the following C code: //declared at the beginning of the CAStar.c file: int TERRAIN_PASSABLE = 1; int TERRAIN_IMPASSABLE = 0; int TERRAIN_SOME_WHAT_PASSABLE = 2; I've noticed that for...
Bump asked 10/12, 2013 at 10:10

2

Solved

When I look at the symbols in my library, nm mylib.a, I see some duplicate entries that look like this: 000000000002d130 S __ZN7quadmat11SpAddLeavesC1EPNS_14BlockContainerEPy 00000000000628a8 S __...
Lapidate asked 15/10, 2013 at 8:26

2

Solved

I am reading the book Hacking, the art of exploitation. In the book there is a section that explain the use of .dtors and .ctors. I'm trying to reproduce one of the exercises of the book but in my...
Inborn asked 15/5, 2013 at 15:44

2

Solved

Looking at the manuals, objdump and nm have overlapping features. When would you use each one? What was the original purpose of each command?
Profound asked 28/8, 2011 at 8:32

1

Solved

I am linking an external library (via wierd process, mpicc + Cython + etc), but I have a weird behaviour of a linking procedure. There are two .o files, libpetsc4py.o and PETSc.o they are linked i...
Tripedal asked 29/3, 2013 at 14:47

1

I am building a shared library (we'll call it "foo") that makes use of another library (we'll call it "bar"). "bar" makes use of some functions from OpenSSL. Here's where the problem surfaces. "b...
Casi asked 10/3, 2013 at 4:40

2

Solved

I'm studying the ELF format right now. I have to code a simple nm fonction (without the options). I'm already printing on the output the symbol's value and the symbol's name. Here's the nm output ...
Headroom asked 5/3, 2013 at 13:44

1

Solved

I'm looking for the tool/command on Unix platform to detect the library dependencies of the .so and .o files. I have already used the ldd/nm/truss, but I don't know the proper approach to detect l...
Bimetallism asked 21/11, 2012 at 19:28

2

I am using the otool, nm and Fraise text editor to disassemble the Mach-o binaries. My workflow at this point is pretty straightforward: 1. List the existed symbols. nm -g 2. Get the disa...
Breland asked 29/2, 2012 at 6:24

© 2022 - 2024 — McMap. All rights reserved.