nov 4
Discuss PIC (Position Independent Code) as described on pg 688.
Create a C program with two files that illustrates one of the errors we talked about last time. Compile and run it. How do we make it statically or dynamically linked? Where is stdio.h? Which library is its code in? (/usr/include/ ; /usr/lib/libc.dylib on mac ; see
http://en.wikipedia.org/wiki/Dynamic_linker#Mac_OS_X)
Walk (work?) through pgs 667 and following that discusses creating a library.
See the attached files for a start at all that.
Use the command line tools listed at the end of the chapter to look at the executable: (ar, strings, strip, nm, size, readelf, objdump)
Look at Devin's work with the buffer overflow lab.
Homework for Tues is posted.