ARM linker stub changes - placement, PIC

Christophe LYON christophe.lyon@st.com
Wed Mar 4 16:57:00 GMT 2009


Hi all,

While reviewing Joseph's patch to insert stubs after input sections, I 
have missed the fact that he didn't take the 'next' section size into 
account before accepting it in the current group to share stubs.

In short, if we have:
a.o: (.text section)
      call foo

b.o: (.text section)
      [huge amount of code]
	call foo

and foo is located far away, the current linker will try to insert stubs 
after b.o, and a.o's call will be to far from the stub.

With the proposed fix, the stubs will be inserted between the 2 
contributions.

Christophe.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: groupsize.changelog
URL: <https://sourceware.org/pipermail/binutils/attachments/20090304/ca54ce58/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: groupsize.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20090304/ca54ce58/attachment-0001.ksh>


More information about the Binutils mailing list