Re: Sort output dynamic relocations.

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

 



On Sat, Jul 9, 2011 at 11:08 AM, John David Anglin <dave.anglin@xxxxxxxx> wrote:
> 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?

Ulrich Drepper says that relative relocations must *always* be first,
it doesn't require a complete sort.

The dynamic loader is a special case, but there are some requirements.

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

I haven't tried that yet, are you saying we should change binutils to
*default* to "-z combreloc?"

> 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.

That sounds like a good place to start if the latter fails.

Cheers,
Carlos.
--
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