Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to remove RUNPATH from existing libraries

807575Apr 20 2005 — edited Apr 1 2010
We're using a sharable library from a 3rd party library that was linked with the default RUNPATHs. (The compiler inserts its own library locations for the RUNPATH unless you tell it otherwise). One of our customers happens to have an unpatched version of an old Sun compiler at the same location where our vendor built their sharable library. We've worked around the problem by having the customer patch their compiler, and we're nagging the vendor to build with -norunpath, but they've still haven't done it after a year.

Is there a utility to edit an ELF file (lib*.so.1) to remove RUNPATH? Do I also need to worry about RPATH in an ELF file?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2010
Added on Apr 20 2005
4 comments
205 views