This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PR ld/12277: Linker error: "final link failed: Nonrepresentable section on output"


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]