The output of -Map is produced at the end of linking, and is *not* produced if relocation errors occur. This lack of map file can make it very difficult to understand why a relocation was out of range.
Created attachment 4404 [details] Implement --no-relax as a generic linker option
Hi Richard, Something like the uploaded patch perhaps ? Cheers Nick
Subject: Re: Map file generated too late On 11/20/2009 11:09 AM, nickc at redhat dot com wrote: > Something like the uploaded patch perhaps ? Wrong PR, Nick. And that 150 thing is *really* gross. Wouldn't it be better to change command_line.relax to be a tri-state thingy, so that the backend can tell if it's unset? r~
Hi Richard, Doh! Bogus patch obsoleted. I'll rework the patch as you suggested and upload it to the proper PR. Cheers Nick
Map output can't be produced until late in linking. --noinhibit-exec helps in some cases.