CS32, Fall 2012

Lab08:
Inspecting object/load modules


Goals for this lab

By the time you have completed this lab you should be able to

Step by Step Instructions

Step 0: TA evaluations

The first order of business this week is to fill out end-of-term evaluations for your Teaching Assistant(s). Please complete this task before proceeding to Step 1. Thank you!

Step 1: Choose roles, log in, and get a file

Step 2: Compile, link separately, and begin exploring the binaries

Step 3: Inspect object module names/sections with nm and objdump

The command nm lists the "names" (symbols) in an object or load module, and objdump displays various information about such files. Both commands have useful options that are worth learning.

Using objdump can reveal more details about object files. At least one option must be specified.

Step 4: Inspect executable module with readelf

Although you could use objdump to inspect this load module, the readelf tool gives more information about load modules (so called because they are ready to be loaded into memory for execution). As with objdump, at least one option must be specified.

Step 5: Show off your work and get credit for the in-lab requirements

First be sure you know the answers to all of questions a through f listed at the end of Step 4. Then ...

Get your TA's attention to inspect your work, and to record completion of your in-lab work.

This time you may leave early! But be sure to get checked off first.

Step 5a. ONLY IF YOU RAN OUT OF TIME TO HAVE THE TA INSPECT YOUR WORK

If you must complete this assignment at CSIL, then submit it with the turnin program - but do NOT turn it in if the TA already checked you off.

First create a text file named lab08.txt, and type answers to each of the six questions at the end of Step 4 above. You MUST have both your name and your partner's name in lab08.txt in order to receive credit.

Bring up a terminal window on CSIL, and cd into the original pilot's ~/cs32/lab08 directory. Then type the following to turn in your text file:

turnin lab08@cs32 lab08.txt

Evaluation and Grading

Each pair of students must accomplish the following to earn full credit for this lab:


No Homework this week


Prepared by Michael Costanzo.