Problem with ld memory region check

Jafa jafa@silicondust.com
Thu Mar 13 18:21:00 GMT 2003
Hi all,

I have a problem where the .text section is larger than my available memory
(enforced by the region check), but will fit with room to spare after the
relaxation pass strips out the unnecessary long-jumps.

The hack we have been using is to lie about the region and tell the linker
that it is larger than it really is. This alows the relaxation phase to
complete, however does not warn if the .text section is still too big.

I would like to solicit feedback/comments regarding moving the region checks
until after the relaxation has completed.

One area of concern is that code can apprear to be an an address that is
actually a different region until it is resized by the relaxation pass.

Thoughts?

Nick



More information about the Binutils mailing list