This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
symtab/1319: Include non-loadable sections in objfile struct
- From: ac131313 at redhat dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 5 Aug 2003 05:02:01 -0000
- Subject: symtab/1319: Include non-loadable sections in objfile struct
- Reply-to: ac131313 at redhat dot com
>Number: 1319
>Category: symtab
>Synopsis: Include non-loadable sections in objfile struct
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: maintenance
>Submitter-Id: net
>Arrival-Date: Tue Aug 05 05:08:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: ac131313@redhat.com
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
It should be possible to merge "section" and "bfd_section" into a single obj_section pointer and a `relocate' bit - saving ~2 bytes off every symbol.
The objfile data structure contains a table of sections. Unfortunatly the sections are filtered - only loadable ones are in the table.
If instead all the sections were included in the table, it would be come very easy to map between a GDB and BFD section object (just index the table).
Alternativly, code iterating over sections could use GDB's objfile table.
Either way, the section indexes can be replaced with proper pointers to the real sections.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: