This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: sorting dynamic relocation entries.
- To: knk at dde dot dk
- Subject: Re: sorting dynamic relocation entries.
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 11 Mar 2000 10:00:56 -0800
- CC: binutils at sourceware dot cygnus dot com
- References: <38C81979.1638CFB7@dde.dk> <20000310063024.6958.qmail@daffy.airs.com> <38CAD49C.6475912C@dde.dk>
Date: Sat, 11 Mar 2000 16:19:56 -0700
From: Koundinya K <knk@dde.dk>
Does the above code look O.K ?. In particular is the reading of the relocs
O.K ?
Now how do I reflect the change in the "contents" field of the .rel.dyn
section ??
Just sort the relocs in place. Don't copy them into another array.
There already right there in memory anyhow. Remember that they have
been swapped out; write your comparison function to deal with external
relocs, not Elf_Internal_Rela. Add 64-bit support if ABI_64_P is
true.
Ian