bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/9743] --stub-group-size=1 does not help when linking stage


From: nickc at redhat dot com
Subject: [Bug binutils/9743] --stub-group-size=1 does not help when linking stage1 GCC
Date: 21 Jan 2009 12:29:06 -0000

------- Additional Comments From nickc at redhat dot com  2009-01-21 12:29 
-------
Hi Laurent,

  Since --stub-group-size=1 is the default, it is not surprising that it made no
difference.  --stup-group-size=1024 tells the linker to process 1024 input
sections before trying to insert a stub section, which is very unlikely to help
you given that you problem is that the input sections are so large.

  Please could you try --stub-group-size=-1, which tells the linker to place
stub sections before the sections that need them.  If that does not work, please
try --stub-group-size=2 which tells the linker to place stub sections both
before and after input sections that need them, and to group the input sections
into units of 2.

  If neither of those options work, you could try some larger positive values
(eg 4, 8, 16) but in the end this is a heuristic to find a sweet spot to place
branch stubs, not a guarantee of successful linking.

Cheers
  Nick

PS.  Did you try compiling your stage 1 boostrap with -mlong-calls ?  This
should work around the 32Mbyte offset limit of the BL instruction by making gcc
load the address of a function to be called into a register first. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=9743

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]