This is the mail archive of the binutils@sources.redhat.com 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: How to reclaim .rela.dyn entries for symbols that become hidden?


On Thu, Jun 30, 2005 at 04:28:55PM -0400, Carlos O'Donell wrote:
> > Somewere, you're allocating the space for them.  Probably this means
> > that you're counting things incorrectly, or too early.  Is
> > allocate_dynrelocs allocating space for them despite the fact that they
> > are hidden?  If not, where's it come from.

*shrug*

2312: (allocate_dynrelocs): sym __libc_csu_fini, alloc reloc in .rela.text, size (2 * 12)
2314: (allocate_dynrelocs): sreloc .rela.text now size 24
2312: (allocate_dynrelocs): sym __libc_csu_init, alloc reloc in .rela.text, size (2 * 12)
2314: (allocate_dynrelocs): sreloc .rela.text now size 48
2312: (allocate_dynrelocs): sym main, alloc reloc in .rela.text, size (2 * 12)
2314: (allocate_dynrelocs): sreloc .rela.text now size 72
2312: (allocate_dynrelocs): sym _Jv_RegisterClasses, alloc reloc in .rela.rodata.cst4, size (1 * 12)
2314: (allocate_dynrelocs): sreloc .rela.rodata.cst4 now size 12

2590: (elf32_hppa_size_dynamic_sections): Allocate sec .rela.text size 72 at 0x244190
2590: (elf32_hppa_size_dynamic_sections): Allocate sec .rela.rodata.cst4 size 12 at 0x2441d8
2590: (elf32_hppa_size_dynamic_sections): Allocate sec .plt size 76 at 0x2441e8
2590: (elf32_hppa_size_dynamic_sections): Allocate sec .rela.plt size 72 at 0x244238
2590: (elf32_hppa_size_dynamic_sections): Allocate sec .got size 40 at 0x244280
2590: (elf32_hppa_size_dynamic_sections): Allocate sec .rela.got size 48 at 0x2442a8

3809: (elf32_hppa_relocate_section): Found output .rela.dyn, size 132

elf_link_sort_relocs: .rela.dyn count = 11 (132 / 12)

I count the symbols and I *swear* I only allocated room for 72+12 = 84.
Yet the count at the start of relocate_section is 132.

c.


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