[PATCH] Make relocation sections contiguous for ARM BPAPI
Julian Brown
julian@codesourcery.com
Tue Mar 15 16:17:00 GMT 2005
Hi,
This patch helps bfd conform a little better to the ARM BPAPI, by
grouping all types of relocation together to enable a postlinker to work
correctly (when relevent, e.g. on SymbianOS).
The layout of relocations after the patch is:
.rel[a].dyn
.rel[a].plt
.rel[a].other
.reli.other
Where .rel[a].other contains all .rel[a].* sections, which the linker
script was previously not aware of and placed elsewhere. .reli.other
contains .reli.* sections so they are also contiguous, though I am
unsure what they are for.
This patch *doesn't* make the linker put .rel[a].plt sections after all
other relocation types, as strongly recommended by the BPAPI.
OK to apply?
ChangeLog:
* ld/scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
.rel.fini_array.
(.rela.dyn): Add .rela.init_array, .rela.fini_array.
(SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT
relocs.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-1
URL: <https://sourceware.org/pipermail/binutils/attachments/20050315/9f10269a/attachment.ksh>
More information about the Binutils
mailing list