Computer
Systems

Fall 2010
course
navigation

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.
http://cs.marlboro.edu/ courses/ fall2010/systems/ notes/ nov_4
last modified Thursday November 4 2010 11:24 am EDT

attachments [paper clip]

     name last modified size
[COD]determinant.c Nov 4 2010 11:10 am 1.14kB    determinant.h Nov 4 2010 11:18 am 197B [COD]test_det_transp.c Nov 4 2010 11:18 am 1.95kB [COD]transpose.c Nov 4 2010 11:18 am 328B    transpose.h Nov 4 2010 11:18 am 156B