Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
992 views
No networkmanager service on RHEL 7.9
Got a RHEL 7.9 server. Seems the networkmanger package is installed but no service added. Is there a way that I can manually add the service? # yum install NetworkManager Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlem...
Got a RHEL 7.9 server. Seems the networkmanger package is installed but no service added. Is there a way that I can manually add the service? # yum install NetworkManager Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. local | 2.8 kB 00:00:00 Package 1:NetworkManager-1.18.8-1.el7.x86_64 already installed and latest version Nothing to do # systemctl start networkmanager Failed to start networkmanager.service: Unit not found. # cat /etc/*release NAME="Red Hat Enterprise Linux Server" VERSION="7.9 (Maipo)" ...
sleepy (257 rep)
Apr 22, 2022, 08:48 AM • Last activity: Apr 22, 2022, 10:34 AM
2 votes
1 answers
934 views
How do `nm` choose the character to print for each symbol type?
I'm currently doing a `nm` like program, to print the symbols of an ELF file with their addresses and their type. The typical output is something like : ``` $ nm ./my_exec 0000000000003d28 d _DYNAMIC 0000000000003f28 d _GLOBAL_OFFSET_TABLE_ 0000000000002000 R _IO_stdin_used w _ITM_deregisterTMCloneT...
I'm currently doing a nm like program, to print the symbols of an ELF file with their addresses and their type. The typical output is something like :
$ nm ./my_exec      
0000000000003d28 d _DYNAMIC
0000000000003f28 d _GLOBAL_OFFSET_TABLE_
0000000000002000 R _IO_stdin_used
                 w _ITM_deregisterTMCloneTable
                 w _ITM_registerTMCloneTable
The first column is the symbol address, the second is the symbol type and the third, the symbol name. The man indicates the meaning for each character, upper-case is a global symbol, lower-case is local symbol etc... But I don't understand *how* it choose which character to use. I'm using the Gelf library and I didn't see a field from where I could determine the character.
hollow (31 rep)
Mar 10, 2022, 08:06 PM • Last activity: Mar 10, 2022, 09:42 PM
0 votes
1 answers
2938 views
How do I use nm to recursively search for specific symbol?
I would like to find the symbol "start" for example in all object files recursively down from the directory I'm in. I think I can use `nm` or `readelf`, but I'm new to shell and not understanding how to do this from the manual.
I would like to find the symbol "start" for example in all object files recursively down from the directory I'm in. I think I can use nm or readelf, but I'm new to shell and not understanding how to do this from the manual.
Andrew Cina (67 rep)
Sep 19, 2019, 11:25 PM • Last activity: Sep 20, 2019, 08:08 AM
46 votes
3 answers
27786 views
Why nm shows no symbols for /lib/i386-linux-gnu/libc.so.6?
I expected to see number of symbols in the **libc.so.6** file including **printf**. I used the **nm** tool to find them, however it says there is no symbol in libc.so.6.
I expected to see number of symbols in the **libc.so.6** file including **printf**. I used the **nm** tool to find them, however it says there is no symbol in libc.so.6.
masec (645 rep)
May 11, 2016, 08:48 PM • Last activity: Oct 23, 2018, 01:45 AM
3 votes
1 answers
4202 views
How to understand the result returned by "nm" command
I used `nm` command to inspect the function names in a .so library. And the result I got is like this: 00009634 T _Z24ICTCLAS_ParagraphProcessPKciPc9eCodeTypeb 00009764 T _Z25ICTCLAS_ParagraphProcessAPKciRi9eCodeTypeb 00009b24 T _Z26ICTCLAS_ParagraphProcessAWPKcP17tagICTCLAS_Result9eCodeTypeb Actual...
I used nm command to inspect the function names in a .so library. And the result I got is like this: 00009634 T _Z24ICTCLAS_ParagraphProcessPKciPc9eCodeTypeb 00009764 T _Z25ICTCLAS_ParagraphProcessAPKciRi9eCodeTypeb 00009b24 T _Z26ICTCLAS_ParagraphProcessAWPKcP17tagICTCLAS_Result9eCodeTypeb Actually there are functions called ParagraphProcess and ParagraphProcessA. But how to interpret the prefix(_Z24ICTCLAS_) and suffix(PKciPc9eCodeTypeb) and the address-like string(00009634) at the start of the line?
xiaohan2012 (1765 rep)
Feb 27, 2012, 10:33 AM • Last activity: Jan 26, 2018, 09:48 AM
0 votes
0 answers
115 views
Use the output of find as the input for another command?
I am looking for a specific symbol in a bunch of shared libraries, I am using the following command: find . -iname "*.so" | nm -D //loop over output of find | grep -e symbol How can I tell nm -D to loop over find results ? Thanks
I am looking for a specific symbol in a bunch of shared libraries, I am using the following command: find . -iname "*.so" | nm -D //loop over output of find | grep -e symbol How can I tell nm -D to loop over find results ? Thanks
Bionix1441 (307 rep)
Dec 28, 2017, 12:48 PM
5 votes
2 answers
407 views
nm program - why such name?
Where does the name of `nm` come from? The [IEEE standard][1] defines `nm` as: nm - write the name list of an object file Is `nm` an abbreviated form of word `name`/`names`? Or does it have a completely different origin? [1]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/nm.html
Where does the name of nm come from? The IEEE standard defines nm as: nm - write the name list of an object file Is nm an abbreviated form of word name/names? Or does it have a completely different origin?
tmp (205 rep)
Jul 1, 2015, 01:07 PM • Last activity: Jul 1, 2015, 02:10 PM
Showing page 1 of 7 total questions