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]

Re: Patch: Zero out the allocated dynamic content space.


On Fri, Aug 18, 2000 at 12:13:40PM -0700, Richard Henderson wrote:
> On Fri, Aug 18, 2000 at 09:35:00AM -0700, H . J . Lu wrote:
> > I have no arguments with that. But as Alan has pointed out, it is not
> > an easy job to do.
> 
> Actually, it isn't that bad.  Both the alpha and ia64 ports do this
> correctly: record how many relocations of what class against which
> symbols, and then compute the size only in size_dynamic_sections.
> Which happens after all the symbol visibility changes have happened.
> 

It doesn't mean anything to me since both alpha and ia64 ports use
bfd_zalloc in that particular place. Just search for

/* Allocate memory for the section contents.  */

and see what below that. I don't know what happens if they use
bfd_alloc instead.


-- 
H.J. Lu (hjl@gnu.org)

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