Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
> Symbols stripped from shared object
post Dec 17 2012, 07:53 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 17-December 12
Member No.: 18,012

I've run into an issue when building/installing our software. Somehow, the symbols for our shared object (lib<myLib>.so) are getting stripped which causes an undefined symbol exception during runtime.

I create the .so using "gcc -g -o2 -Wall -fPIC -fno-stack-protector -L /opt/<otherVendor>/lib -I/usr/java/jdk1.6.0_29 ..."

Using "nm lib<myLib>" returns a set of symbols

I then use "install lib<myLib>.so /usr/src/redhat/SOURCES/ ... /lib" to start the RPM building process

Using "nm lib<myLib>.so" in the directory it was installed in again returns a set of symbols

To create the tarball for use by RPM, I use "tar -cvf <myApp>.tar.gz <myApp>"

If I extract the tarball and run the nm command, it still shows symbols.

I create the RPM with "rpmbuild -ba <myApp>.spec"

I then install the RPM with "rpm -ivh <myApp>.i386.rpm"

If I then run "nm lib<myLib>.so" on the newly RPM installed .so, it returns "nm: lib<myApp>.so: no symbols"

Running "file lib<myLib>.so" returns:

lib<myLib>.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped

I have been using the same process to deliver our software for years and this is the first time I've seen this.

Can anyone point me in the right direction to stop the symbols being stripped from the .so?

Go to the top of the page
+Quote Post

Posts in this topic
- ivspguy   Symbols stripped from shared object   Dec 17 2012, 07:53 PM

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 21st October 2017 - 08:09 PM