- World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.

  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!

    Send your Resume to 6000 Companies

    Question :
    How can I read in an object file and jump to locations in it?
    Category C Interview Questions
    Rating (0.3) By 9 users
    Added on 11/17/2011
    Views 211
    Rate it!

    You want a dynamic linker or loader. It may be possible to malloc some space and read in object files, but you have to know an awful lot about object file formats, relocation, etc., and this approach can't work if code and data reside in separate address spaces or if code is otherwise privileged.
    Under BSD Unix, you could use system and ld -A to do the linking for you. Many versions of SunOS and System V have the -ldl library containing routines like dlopen and dlsym which allow object files to be dynamically loaded. Under VMS, use LIB$FIND_IMAGE_SYMBOL. GNU has a package called ``dld''.

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

    Related Questions
    View Answer
    How can I implement a delay, or time a users response, with sub-second resolution?
    View Answer
    How can I trap or ignore keyboard interrupts like control-C?
    View Answer
    How can I handle floating-point exceptions gracefully?
    View Answer
    How can I ensure that integer arithmetic doesnt overflow?
    View Answer
    What are near and far pointers?
    View Answer
    But I cant use all these nonstandard, system-dependent functions, because my program has to be ANSI compatible!
    View Answer
    Why isnt any of this standardized in C? Any real program has to do some of these things.
    View Answer
    How can I return multiple values from a function?
    View Answer
    What is a good data structure to use for storing lines of text?
    View Answer
    What is the right way to use errno?
    View Answer
    How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
    View Answer
    If I have a char * variable pointing to the name of a function ...
    View Answer
    How can I manipulate individual bits?
    View Answer
    How can I determine whether a machines byte order is big-endian or little-endian?
    View Answer
    How do I swap bytes?
    View Answer
    How can I convert integers to binary or hexadecimal?
    View Answer
    Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
    View Answer
    What is the most efficient way to count the number of bits which are set in an integer?
    View Answer
    What is the best way of making my program efficient?
    View Answer
    Are pointers really faster than arrays?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

    View ALL C Interview Questions

    User Options
    Sponsored Links

    Copyright ©2003-2015, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Cache = 0.0625 Seconds