DLL rebase

This is a discussion on DLL rebase within the Tech Board forums, part of the Community Boards category; Also note that the CODE section in a C program is almost entirely free of references to other code that ...

  1. #16
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Also note that the CODE section in a C program is almost entirely free of references to other code that needs to be relocated - all calls and branches are "relative to current instruction", so only "other' references need fixup. This is typically data addresses (e.g. string constants, global variables), jump tables for (large) switch statements and VTables.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  2. #17
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Thanks for sharing, Mats!


    My question is answered.

    Quote Originally Posted by matsp View Post
    Also note that the CODE section in a C program is almost entirely free of references to other code that needs to be relocated - all calls and branches are "relative to current instruction", so only "other' references need fixup. This is typically data addresses (e.g. string constants, global variables), jump tables for (large) switch statements and VTables.

    --
    Mats

    regards,
    George

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 08:11 AM
  2. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 03:20 AM
  3. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 01:34 PM
  4. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM
  5. Passing parameters from VB to C++ through ActiveX DLL
    By torbjorn in forum Windows Programming
    Replies: 0
    Last Post: 12-10-2002, 03:13 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21