OSDN Git Service

2004-02-12 Dave Brolley <brolley@redhat.com>
authorbrolley <brolley>
Thu, 12 Feb 2004 20:30:08 +0000 (20:30 +0000)
committerbrolley <brolley>
Thu, 12 Feb 2004 20:30:08 +0000 (20:30 +0000)
commit020eedd6aefe48b795f77ebea700fc9483e8ed6c
treeac22b225224ae633f7a85e6499f5a677e3cbfd55
parent463cb55b33b90cdf9dad63a45aa39bf116d1c8f5
2004-02-12  Dave Brolley  <brolley@redhat.com>

        * elfload.h: Use 'unsigned long long' instead of host_int_8.
        (struct TextSection): Moved here from elfload.c
        (SHF_EXECINSTR): New macro.
        * elfload.c (loadAreas): Now a pointer to a dynamically allocated
        table.
        (textSections): Ditto.
        (newLoadArea): New static function.
        (newTextSection): Ditto.
        (textSectionAddress): Now takes a pointer to a section table.
        (readElfFile): fileHeader, psymHdr, secHdr now automatic arrays.
        Allocate loadAreas and textSections as required. Build textSections
        from the ELF section table; one for each executable loaded.
        * compLoader.cxx (sid::host_int_8): Add 'using' clause.
        (textSegmentAddress): renamed to textSectionAddress and moved to
        elfload.h.
        (setSection_table): New method of loader_probe_bus.
        (SID_GB_WRITE): Call textSectionAddress and pass section_table.
        (section_table): New member of loader_probe_bus.
        (load_it): Get section_table address from readElfFile.
        * Makefile.am (LIBIBERTY): New variable.
        (libloader_la_LIBADD): Add $(LIBIBERTY).
        * Makefile.in: Regenerated.
sid/component/loader/ChangeLog
sid/component/loader/Makefile.am
sid/component/loader/Makefile.in
sid/component/loader/compLoader.cxx
sid/component/loader/elfload.c
sid/component/loader/elfload.h