This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: relaxing partial links
On Wed, May 27, 2009 at 08:47:36AM +0100, Nathan Sidwell wrote:
> Alan Modra wrote:
>> On Tue, May 26, 2009 at 03:53:40PM +0100, Nathan Sidwell wrote:
>>> * ldmain.c (main): Don't reject --relax -r.
>>
>> What sort of a bomb does this drop on other target relax_section
>> functions?
>
> I don't know. sorry, I forgot to mention that I'm unsure of a
> target-specific way of doing that check. suggestions?
I think you're overlooking the obvious. :-) In each target
relax_section, add
if (link_info->relocatable)
(*link_info->callbacks->einfo) (_("%P%F: --relax and -r may not be used together\n"));
Adjust as necessary for name of struct bfd_link_info * param.
OK with those additions.
--
Alan Modra
Australia Development Lab, IBM