This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sorting dynamic relocation entries.


   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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]