Programming :: 'nm' Lists All Symbols - Including Static Library Symbols?
Apr 5, 2010
By issuing the 'nm' command on shared library (internally using one static library), the functions exposed by static library is also being listed, Which allows to use internal functions which is of course not intended. I have one static library having A(), B() and C() functions. Creating one shared library which has function XYS() that is using A() and B() functions from Static library. While doing 'nm' on shared library, all the static library function are being listed.
Static Lib:
#include<stdio.h>
void A(char *msg)
{
printf("
[code]....
View 4 Replies
ADVERTISEMENT
Oct 19, 2010
I'm running gdb across a network using gdb server. I've got it up and running. However I can't see any source or variables for my code (in ddd /gdb). At start up gdb says (no debugging symbols found). I've got a g in my make file,
CPFLAGS = -Wall -Os -g -pedantic
I've tried loading symbols in using "symbol-file testarm", this sort of works in that I can view symbols but not names, e.g. if I ask dd to show x y and z, rather than
x = 10
y = 20
x = 30
It says:
display
10/20/30
Also ddd does not show anything in the source window, is there a way I can get it to show this? I think it's because I've started ddd with ddd arm-linux-gdb, as I'm calling a crosscompiler gdb. So can I tell ddd to point to the correct folders? What commands I need to set in gdb/ddd to view variable names (it's hard to keep track when it bunches them all together) and how to view my source code.
View 2 Replies
View Related
Nov 27, 2010
I decided to try making a programming language again after my last unsuccessful attempt, so now I figured how to write a good AST and it works great when the nodes are hard-coded into a test program. But to make a language out of it, I need a parser to build the tree according to an input file. I ran into a problem here:
YACC input file:
Code:
%{
#include "nodes/allnodes.h"
#include "Node.h"
int vars[26];
%}
%token SEMICOLON INTEGER VARIABLE IF WHILE DO OPAREN CPAREN OBRACE CBRACE
%right ASSIGN
%left NE
%left PLUS MINUS
%left TIMES DIVIDE
%% .....
As you might see, each nonterminal creates a Node* object and uses it as its value. The problem is that the literal tokens, however, don't return Node*'s and I don't know what to do. I would like to be able to convert literal tokens to nodes in the Lex file (which would avoid the problem), but the problem is with the assignment operator, which takes a Node* for the right-hand side and a variable name (not a Variable Node, because they just evaluate the the variable's value and you can't change the variable with them) for the left hand side.
View 14 Replies
View Related
Aug 22, 2010
I was going through some exercise given in my school. I have read the C book but I am not able to understand some part. That is static variable. What exactly is a static variable and what does it do? I saw in Linux Kernel Programming external and exported are also some thing. I am not getting the difference between static,EXPORT_SYMBOL,external variable types. If I make a kernel module then how will I make sure that my variable is visible to the kernel. Is this what it is all talking about? I have checked this page [URL].
View 2 Replies
View Related
Apr 2, 2010
I am trying to port c & c++ open source code onto embedded target(MIPS).It compiles fine on x86/RH4. When I try embedded platform specific tool chain as follows, I get following error:
I tried different combinations. It did not help. My idea is to port an open source code that works fine on X86/Linux to an embedded target based on MIPS.
View 4 Replies
View Related
Aug 21, 2010
Arm-linux-strip for removing the symbols from binary executable file after compilation. What exactly the symbols means.
View 1 Replies
View Related
May 4, 2010
I have a shared library (built from C++ code) and a separate C program which calls (extern) functions from the said library.
Also one of the functions in that library needs to call a function in this C program by declaring it 'extern'. This sort of creates a cyclic dependency.
I am getting "unresolved references" error, as expected.
View 3 Replies
View Related
Jan 6, 2011
I wasn't sure where to put this so if I need to move it just let me know.I have a strange problem that I cannot figure out. When I use gdb to debug our rpm-installed program, it says (no debugging symbols found) when it loads. Thing is, when I use nm on the program it can print the symbols, and even stranger is if I use gdb on the program before it is packed up by rpmbuild it loads the debug symbols just fine.Our program is built via the standard make using:GS=-g -Wall-pedantic and as I mentioned I can debug the resulting program. After the build, I package it up using:
cmd="rpmbuild -v -bb ptsnmp.spec --define "ver ${cmvc_release}" --define "rel ${cmvc_level}" --define "_topdir $rpmdir""When this package is installed via rpm, the binary on the machine shows all the debug info via nm, file shows it is not stripped:pt_snmp: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not strippedyet when I try to debug it I get the no debugging symbols found.This is really taxing my brain and I am sure I am just missing something
View 4 Replies
View Related
Feb 17, 2010
I am using Centos 5.4 with gcc v4.1.2. If I take a bunch of .o files and I then link with my main.o to form an executable then this links and executes just fine. If however, I try to create an archive file (.a) using 'ar rus xxx.o yyy.o etc' and then try to link the resulting .a with my main.o then I get 'undefined symbol' linker errors and I don't understand why.
View 2 Replies
View Related
Apr 7, 2009
I'm reading about shared, static, and dynamic libraries. What is SDL? Is it static, shared, or dynamic?
I always thought a library would be a lot of .h and .cpp files compiled separately into .o files and then if you compiled your own program you could use the -l parameter to link the library and it was all compiled together. Now I'm not so sure.
I don't even see any SDL .cpp files in my system anywhere. All I have are lots of SDL .h files in /usr/include/SDL and I don't really understand the code in them.
I'm making a wild guess here: SDL is a shared library. SDL itself is NOT compiled into my program, therefore SDL must be on any system my program tries to run on. When I compile and link SDL all it needs is the header files to know what SDL function and objects it can use. And then on every system it uses an already compiled SDL shared library thingy somewhere.
So... where is that part of SDL? All I can find are header files.
I'm thinking the advantage of shared libraries is that someone could say update SDL on their own system and take advantage of the new features without having to download new executables with the new version of SDL compiled into them for every program that uses SDL.
So if I'm making an editor and a game engine and they both use a lot of the same .cpp and .h files that I wrote and I'm tired of updating one and then the other and I need to turn them into a library, then a shared library might be kind of a silly solution. I could just make a static library. Right? Because it's not SDL. Nobody else is ever going to use this library.
View 6 Replies
View Related
Mar 31, 2010
To create a static library, or to add additional objectiles to an existing static library, I can use a command like this:ar rcs my_library.a file1.o file2.oBut how to add an existing static library to my own static library. I have created my own static library using the command above and want to link against the library libuuid.a (placed in /usr/lib/).
View 6 Replies
View Related
Feb 17, 2011
I've been messing with a curses-based disk check tool in Linux called VDT (visual disk test). It puts out a nice little chart on the screen as it's going, but I have no idea what each unit of output on the chart means. I've read the man page several times, but there doesn't seem to be any mention of the visual output.
For instance, right now I have a chart that looks like this during a read test. What do the o's and the Z mean?
View 1 Replies
View Related
Jan 8, 2010
wanted to remove one of the informative symbols, at the top right of the screen next to the date/time, i right clicked it and went 'remove from panel' and all my symbols including the battery level and network connection indicators. I cant seem to get them back and their not in the 'add to panel' list
View 4 Replies
View Related
Nov 1, 2010
I have searched these forums and the net and for the life of me I cannot find a list of of all the options (ie. -a -b -c) I also have some interest in knowing what certain symbols do such as {};
View 6 Replies
View Related
Jul 21, 2011
Where can I find debug symbols of GNU packages, for example for coreutils etc.?
View 3 Replies
View Related
Jun 4, 2010
When I used slackware 13.0 I installed wine 1.1.40 and then I installed an old program, PowerTAB. The font for the mf, mp, and other symbols was very small and unreadable. To solve this I put sylfaen.ttf in /home/darksaurian/.wine/drive_c/windows/Fonts and this magically fixed the problem. I don't know why or how I figured it out. But now with Slack 13.1 I do the exact same thing, same version of wine, and the font trick does nothing. The mf, mp symbols remain unchanged and unreadable.
View 9 Replies
View Related
Jun 26, 2010
Where can I find KDE 4.4.x debug symbols?
My dolphin-fish likes to be out of segment (segmentation fault).
KDE crash handler complains about missing debug(ger) symbols.
Are they added to Slackware? I made full-install.
View 2 Replies
View Related
Nov 18, 2009
How can we convert a dynamic library (filename.so) to a static library (filename.a) using gnu gcc . Can we get a static library form a dynamic library . I saw a few post in which the conversion form a static library to a dynamic library is mentioned but, unfortunately, not the other way.
View 4 Replies
View Related
Mar 2, 2010
How do I get debug symbols for glibc? I'm using oprofile when profiling applications. Unfortunately, the default glibc version that comes with SUSE 11.1 has the debug symbols stripped-out. That means that all libc functions get aggregated into one big blob under "glibc.so" and you can't tell whether you spend most of the time in memory allocation, syslog or lock related routines.
So, I've tried a myriad of different ways of getting the symbols. From trying to build glibc myself to hunting for dozens of different rpms on this site and on the Internet. So far - no positive results.
My sytem: OpenSUSE 11.1, x86-64.
View 6 Replies
View Related
Jan 9, 2011
I followed the instructions at
OpenSUSE: Bugreport KDE - openSUSE
to install debug symbols for okular which seems to crash quite often for me. However gdb and the kde crash application are unable to find them. The kde app says its not a good crash report and I should follow the guide.. which has already been done.
I installed
kdegraphics4-debuginfo
kdebase4-runtime-debuginfo
kdebase4-workspace-debuginfo
kdelibs4-debuginfo
libqt4-debuginfo
Is there a step I'm missing to get gdb to load the symbols or something?
View 6 Replies
View Related
Jul 9, 2010
For PE executable, I can list the imported symbols using
dumpbin /imports FILE.EXE
or using the depends utility which is GUI application.
`nm ELF-binary' just returns "no symbols".
View 1 Replies
View Related
Feb 13, 2010
I'm using Kubuntu 9.10 and I have a problem with my screen. I use the nvidia driver downloaded from the website, installed manually as I always do. I wanted to update it, but when I press ctr-alt-F1 to go to the console to stop kdm, I cannot see the usual black screen, but only a very strange blinking screen with lines and colours, strange symbols like $ & %. This happens for every F1 until F6, then F7 luckily brings me again on the graphical desktop.
I tried to install the drivers from the "Hardware drivers" manager in Kubuntu, but nothing changed. I don't know if it's an issue related to the kernel or to the driver. But I don't know how to update it without F1 console, and however it's a serious issue because I cannot do anything in case of desktop failure. The kernel is the last officially released (I don't use the proposed repos), that is 2.6.31-19.
View 1 Replies
View Related
Jun 24, 2010
I'm getting a screen that has what looks a like a keyboard, equal-sign, then a person in a circle. This happens when I go to install it. I have made new discs and everything and nothing but the screen.
View 2 Replies
View Related
Sep 12, 2010
Some fonts cause some greek letters to appear as squares or symbols - while the rest appear correctly.
Is there any way to make all non-latin characters to use a font different than the one the latin characters use?
View 2 Replies
View Related
May 8, 2011
When I press the keyboard button: (- _) I would like to see a '_' on the screen instead of a '-'. How can this be done? {Lucid 10.4}
View 2 Replies
View Related
Aug 31, 2010
I am running Ubuntu 10.4LTS. The network symbol of two monitors shows up consistently up in the right hand corner of my monitor. I look at my network settings and it shows activity on eth1 as "never". But, I am on the internet fine.
View 1 Replies
View Related
Mar 16, 2011
In shell scripting, what do or what does this symbol do or mean ? "."(octet), ";" (semicolon)? Would really like to know? Cause I saw a written script if [ -f /etc/file ];then. . /etc/file. Wondering, the "." is meant to be source, so is "." the same thing as "source" ?
View 2 Replies
View Related
Dec 7, 2010
When I try to open text file with mouse pad or kate write all I see is PK and in small letters HF over TF_. I have no idea how this happened. How do I get my text document back? Using XFCE4.6.1, mousepad and kate write for my journal. Properties says its a zip archive but I didn't do that. Anyway tried to unzip it and got:
Code:
PowerJustice may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of PowerJustice or
PowerJustice.zip, and cannot find PowerJustice.ZIP, period.
View 6 Replies
View Related
May 12, 2010
I've been wondering about this for a long time but never thought to ask: I do a lot of scientific work so there are many times it would be really handy to be able to type mathematical symbols or Greek letters which, for the most part, aren't part of the ASCII character set. Like "∞ ρ σ τ ω ∑ ... √ ∫ ≤ ≥ " and so on. Is there a keyboard layout (for Linux) that maps simple key combinations to these kinds of characters? (Assuming all the encoding and font issues are worked out properly) I know I could create one myself but it'd be a lot easier if someone's already done the work, or at least if there's a partial solution I could modify.
View 3 Replies
View Related
Jan 31, 2010
I have Ubuntu 9.10 installed and up to date.
I have an HP Laserjet 2200 connected via USB with 64MB of memory. When I print page 2 of this document (for example) [URL] the delta-symbol and minus-signs do not show up, although I see them in Adobe reader version 9.3.
I have tried several of the available drivers for the printer (including the "[recommended]" one) and none of them produce these symbols.
I'm guessing this is a font issue. I don't know how to show you what font stuff I have installed.
[Code].....
View 4 Replies
View Related