Bug 53767 - Need to be able to undo prelink
Summary: Need to be able to undo prelink
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: prelink
Version: 9
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-09-18 01:26 UTC by Need Real Name
Modified: 2007-04-18 16:37 UTC (History)
0 users

Fixed In Version: 0.2.0-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-10-06 07:29:32 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2001-09-18 01:26:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010808

Description of problem:
With roswell installed and prelinking enabled, the loki_patch utility from
loki software will not run (with an error from ld.so).
I cannot disable prelinking to test whether that is the cause of the
problem. If prelinking can cause problems with executing programs it must
be undoable for the release.
BTW: Is there a manual way to undo prelinking?

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. prelink --all
2. prelink --undo --all
	

Actual Results:  watch as undo appears to prelink again!


Expected Results:  # prelink --undo --all
prelink: Undone!

Additional info:

Comment 1 Jakub Jelinek 2001-09-18 07:32:11 UTC
--undo is not finished yet, it is a planned feature (together with even
harder to do --verify). It won't be able to restore identical binaries/libraries
unless the binaries/libraries have been linked with recent linker (ie.
-z combreloc), because relocs are ordered randomly.
But my current TODO list first includes more section moving magic for binaries
(so that even programs like kmail requiring lots of conflicts will work),
then test/possibly fix alpha/sparc ports, write ppc and ia64 port and then
get to undo/verify.
Note that prelink will be only in preview for the upcoming distribution.
But of course if you manage to prove it is prelink which breaks things
I'm interested in testcases (the safest undo way is ATM
prelink -avmn first, sed the output into list of files which need to be saved
and hardlink list (ln -f x y style shell script) and move the files which need
to be saved somewhere.
Also look at latest prelink, there are several bugfixes:
ftp://people.redhat.com/jakub/prelink/

Comment 2 Jakub Jelinek 2003-10-06 07:29:32 UTC
--undo is supported since 0.2.0-1.


Note You need to log in before you can comment on or make changes to this bug.