#7 Can't view bound import directory

Tim Hill

I downloaded ht editor as I was having difficulty
determining how to access the Bound Import Directory
on a PE format file on Win32 platform. Unfortunately you
seem to be having the same problem as if I try to follow
the link to the raw data pointed to by the Bound Import
Directory then you give the message
can't follow: directory RVA 00000xxx is not valid.
I've since found my way around this so thought I should
pass on the information I have gleened.

To reproduce the problem you need to have a PE file
that is bound, you can do this by using the BIND utility
that comes with Visual Studio, i.e. BIND -u <app.exe>
Then look at the file in ht using the pe/header mode.
Goto the optional header: directories list and you should
see an RVA and size for bound import directory,
selecting raw with give an error message similar to that I
submitted above.

I expect that you if you try to debug your code you will
see that you are trying to determine the section that the
RVA is in and failing to find the section, this is because
the RVA is actually relative to the base of the program.
In my case all I had to do to get the bound import
directory was to add the rva to the base address where
the program files was loaded in memory and it all

If you need more info them please contact me, however
please note that my email may be a little flakey over the
next few days as I transfer my domain.


  • Sebastian Biallas

    • assigned_to: nobody --> steveman
    • status: open --> closed-fixed
  • Sebastian Biallas

    Logged In: YES

    Fixed in CVS.
    The bound import director RVA is actually a raw file offset.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks