Questions tagged [nm]

nm is a POSIX tool that displays symbol names and other such information of an object file to stdout

230 questions
0
votes
2 answers

nm utility to get what is defined in .so file returns error

I need to get the symbols defined in .so file. I use latest Mac OS and I do this: /usr/bin/nm -gC libs/armeabi/libhello.so error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: invalid argument…
Narek
  • 38,779
  • 79
  • 233
  • 389
0
votes
1 answer

Can typedef structures cause name clashes when linking a static library?

When I create a static library, can the typedef structures cause name clashes? Given the example header file below, I understand that myFun() will be an external symbol and could clash with any other library with a myFun() function. To avoid this,…
Markus
  • 589
  • 1
  • 6
  • 19
0
votes
1 answer

mysql n:m relationship delete query 1242 Subquery returns more than 1 row

I have two SQL Tables, 'products' and 'tags'. They have an n:m relationship, using a third table 'product_tags'. I want to delete some products and corresponding tags all together. Let's say, I have products.product_id=3, that product have…
coverboy
  • 51
  • 1
  • 10
0
votes
1 answer

count of external symbol usages by shared library

I want to find some external symbols, used by one shared library (.so) in another. I easily can run nm -D ./lib_the_one.so and get list of used symbols by grepping, for example ' U ' (undefined symbols): U The_external_symbol Now I want…
osgx
  • 90,338
  • 53
  • 357
  • 513
0
votes
1 answer

Expected signature of external symbol in static lib

I have a static lib libTheLib.a (compiled by someone else). I am trying to link it with my program. One of the functions that this lib requires for linking is GetName. I have a function void GetName(char*, int) in my project, but the linker is still…
Baruch
  • 20,590
  • 28
  • 126
  • 201
0
votes
1 answer

why i can not find any symbols in libs/armeabi/libtest.so

When I use ndk, I can not find symbols in shared_libraries. Android.mk : LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := test LOCAL_SRC_FILES := test.cpp include $(BUILD_SHARED_LIBRARY) test.cpp: void fun() {} after ndk-build,…
humble00
  • 11
  • 1
0
votes
1 answer

manually setting function address gcc

I've got a worked binary used in embeded system. Now i want to write a some kind of patch for it. The patch will be loaded into a RAM bellow the main program and then will be called from main program. The question is how to tell gcc to use manually…
qmor
  • 568
  • 6
  • 20
0
votes
0 answers

Is the ICU library corrupted?

I am getting the following output for the nm –u for a ICU library. Does it mean this library is corrupted? While using this library some of our code take 20 mins to complete the execution. I'm suspecting it is because of this library is corrupted…
Abinash Bishoyi
  • 187
  • 1
  • 2
  • 13
0
votes
1 answer

How to list the file names from a static library with .o extension

I am having a two c program file temp1.c and temp2.c. I compiled and generated dot o files for this temp1.o and temp2.o. After that I genrated final.o and final.a by combining these two dot o files. Now these two static libraries are working…
rashok
  • 12,790
  • 16
  • 88
  • 100
0
votes
3 answers

Linking Error - Use nm to fix

I have a linking error which I'm supposed to fix using the nm command on Unix. If I have the following linking error: undefined reference to 'program_name', and when running nm on that object file, program_name symbol is shown as follows in the…
darksky
  • 20,411
  • 61
  • 165
  • 254
0
votes
1 answer

Listing external variables in cpp file

External variables are not listed by "nm" command because they have been declared as extern so memory for them will not be allocated in this program. Is there any other way to list extern variables? Where stored information about external variables…
Alex Hoppus
  • 3,821
  • 4
  • 28
  • 47
0
votes
2 answers

Hide executable symbols from nm command

The nm command lists all symbols in executable. this is good guidance for reverse engineering and crackers. I want to hide them. The gcc maybe has switches for this purpose but I do not use gcc. Is there an approach to hide them directy from binary…
mh taqia
  • 3,506
  • 1
  • 24
  • 35
0
votes
2 answers

Bidirectional n:m relation on same table in TYPO3 vers. 4.7.2

In our own extension we have a table that should have an n:m relation to itself. I'll make a figurative example (our real case is similar to it): Let's call the table 'employee'. Now an employee can be attached to other employees, e.g. I edit…
Stefan
  • 337
  • 6
  • 20
0
votes
2 answers

need to output binary names to a file/stdout based on symbol table information

I have a file which contains some binaries. I am trying to use nm on these binaries to search for an object file. My problem is, I want to output only those binaries from this file (executables.out) that contain the required symbols. Any idea how to…
K_U
  • 15,832
  • 8
  • 26
  • 29
0
votes
1 answer

GDB CallStack Address virtual or physical?

My gdb bt callstack gives function name with function address. Then I did nm binary and generated the function name and address mapping. When I tried to match gdb address with nm output it did not match. The function address in (gdb) bt where too…
SanTosh
  • 61
  • 7
1 2 3
15
16