Re: Sort output dynamic relocations.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 7-Jul-11, at 7:13 PM, Carlos O'Donell wrote:

On Thu, Jul 7, 2011 at 1:44 PM, John David Anglin <dave.anglin@xxxxxxxx > wrote:
On 7/7/2011 11:29 AM, Carlos O'Donell wrote:

Dave,

FYI.

PA should be sorting relocations in .rlea.dyn such that realtive
relocations (DIR32) are listed first before opd relocs (PLABEL32).

I imagine that this shouldn't be too hard to implement.


As far as I can tell, most targets don't sort dynamic relocations. The exceptions that I see are mips and score. Doing this will increase link time, so I tend to think it should be avoided if possible. Isn't the dynamic loader a special case?

Have you tried the ld "-z combreloc" option to see if that works? It combines
reloc sections and sorts them.

If "-z combreloc" doesn't produce the right order, then we will need something
similar to elf_hppa_sort_unwind().  elfxx-mips.c has a compare function
sort_dynamic_relocs.

Dave
--
John David Anglin	dave.anglin@xxxxxxxx



--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux