Re: [patch] Set bfd field in target_section

Pedro Alves
2009-08-08T16:39:02Z

On Tuesday 28 July 2009 20:51:34, Aleksandar Ristovski wrote:
> Pedro Alves wrote:
> > There used to be an extra structure in bfd_target.c to hold
> > the sections and the bfd, which didn't look necessary when I
> > reimplemented bfd-target.c on top of exec.c's functions, but
> > it is clear now that we need it anyway. Here's a patch that
> > brings something like that back.
> >

(actually, there never was such a thing, I must have
dreamed about it. :-) The bfd used to be stored directly in
target_ops->to_data, and once upon a time, there used to be
target_ops->to_sections|target_ops->to_sections_end pointers.)

> > Could you try it? Thanks.
> >

> I tried it, it works.

Thanks, I've applied it.

--
Pedro Alves