1144 cd linker_demo # we looked at the hello.c file to see its definitions (main, messages, hello) and its external references (printf) 1145 vim hello.c # our makefile has targets for viewing the symbols of an object file 1146 vim Makefile 1147 make hello.o 1148 make symbols-o # NOTE: this was called "view-symbols" during lecture # T means a code definition; D means a global variable definition; U means a unresolved reference (i.e., something the linker must fix up for us) # lets run the linker to produce hello (we force gcc to statically link everything, including the standard library) 1152 make static_hello # Notice that the executable static_hello includes the printf definition (and helper functions) 1153 make symbols-static | grep printf 1156 history > lec20.history