This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR ld/12277: Linker error: "final link failed: Nonrepresentable section on output"
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 1 Feb 2011 13:18:11 -0800
- Subject: Re: PATCH: PR ld/12277: Linker error: "final link failed: Nonrepresentable section on output"
- References: <20110201203840.GA12996@intel.com> <4D487CED.7060603@gmail.com>
On Tue, Feb 1, 2011 at 1:36 PM, Dave Korn <dave.korn.cygwin@gmail.com> wrote:
> On 01/02/2011 20:38, H.J. Lu wrote:
>> Hi,
>>
>> This patch avoids reporting undefined symbols referenced from plugin
>> dummy. ?Any objections?
>
> ?I'm working on a different plan that I think would be more complete and
> requires only modifying ld. ?Can you see any reason why this would not work:
>
> ?After reading all input files, but before calling the plugin's
> all_symbols_read hook, run down the list of undefs; find any that came
> originally from IR-only dummy BFDs; delete them by setting the type of the
> link hash entry back to bfd_hash_new and marking the section they came from
> SEC_EXCLUDE; finally call bfd_link_repair_undef_list to remove them from the
> undefs chain.
>
> ?I'd rather do it that way if it works.
>
It may work. But do you really need IRONLY_SUFFIX and
IRONLY_SUFFIX_LEN?
--
H.J.