[rfa] Add bfd_runtime
Ian Lance Taylor
ian@wasabisystems.com
Fri Oct 8 02:04:00 GMT 2004
Andrew Cagney <cagney@gnu.org> writes:
> But what of this:
>
> > For runtime, bfd_map_over_sections needs to do something different again create a list of sections using offset information obtained from the segment table.
> > That can either be done in two stages; reverse map in-memory
> > segments to on-disk image, open pseudo on-disk image as an object
> > file; or a single direct stage where the "sections" describe the in
> > memory offsets.
> > The latter, which I think is an operation unlike any of the above,
> > is what I'm trying to implement.
>
> Do you concure that the operation is unlike any of the above?
In terms of how the information is obtained, sure. In terms of how
the information is used, no.
> > I'm not arguing for architecture-specific code. The code should be
> > written in a generic way to support any architecture, and
> > elf32-i386-runtime would just be a modification of elf32-i386 which
> > called this new generic code to dig up the runtime information.
>
> How? Without adding to BFD's existing macro #include hell? This is
> needed for all elf object formats.
You can use the pre-existing #include hell; you just need to add a
bfd_target at the end of elfxx-target.h.
Ian
More information about the Binutils
mailing list