This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Problem with ld memory region check
- From: "Jafa" <jafa at silicondust dot com>
- To: <binutils at sources dot redhat dot com>
- Date: Thu, 13 Mar 2003 10:20:56 -0800
- Subject: Problem with ld memory region check
- Reply-to: "Jafa" <jafa at silicondust dot com>
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