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: x86 ifunc related excessive memory use


On Thu, Jun 18, 2009 at 7:36 AM, H.J. Lu<hjl.tools@gmail.com> wrote:
> On Thu, Jun 18, 2009 at 7:18 AM, Alan Modra<amodra@bigpond.net.au> wrote:
>> On Thu, Jun 18, 2009 at 05:52:45AM -0700, H.J. Lu wrote:
>>> On Thu, Jun 18, 2009 at 5:24 AM, Alan Modra<amodra@bigpond.net.au> wrote:
>>> > HJ, since your ifunc patches I can't even run "make check" on my x86
>>> > box successfully.
>>> >
>>> > tmpdir/dump53.o: could not read symbols: Memory exhausted
>>> > FAIL: ld-elf/64ksec
>>> >
>>> > A quick look says it is likely to be the fact that you don't free
>>> > isymbuf in check_relocs.
>>> >
>>>
>>> I checked in this fix.
>>
>> Thanks, that's better. ?Reading the syms for each section processed
>> was a little excessive. ?:)
>>
>> You might like to use bfd_sym_from_r_symndx instead of reading
>> all the locals in check_relocs. ?It's a small change I made as part
>> of implementing ifunc support for powerpc.
>>
>> If you decide to stay with reading all the locals then you probably
>> ought to get rid of bfd_sym_from_r_symndx in the x86 and x86_64
>> check_relocs.
>
> Using bfd_sym_from_r_symndx is a good idea. I will fix x86 after
> you check in your patch.
>

This is the patch I checked in.

Thanks.


-- 
H.J.
--
2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>

	* elf32-i386.c (elf_i386_check_relocs): Remove isymbuf and use
	bfd_sym_from_r_symndx.
	* elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.

Attachment: bfd-sym-1.patch
Description: Text document


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