[alert7@redhat62 elf]$ gcc -c test2.c [alert7@redhat62 elf]$ gcc -o test2 test2.o -lbfd -liberty [alert7@redhat62 elf]$ ./test2 helo Scanning 75 symbols Section .interp Symbol "" value 0x80480f4 Section .note.ABI-tag Symbol "" value 0x8048108 Section .hash Symbol "" value 0x8048128 ...... Section *ABS* Symbol "initfini.c" value 0x0 Section .text Symbol "gcc2_compiled." value 0x804841c Section *ABS* Symbol "helo.c" value 0x0 ...... Section *ABS* Symbol "_end" value 0x8049540 Section .rodata Symbol "_IO_stdin_used" value 0x804843c Section .data Symbol "__data_start" value 0x8049448 Section *UND* Symbol "__gmon_start__" value 0x0
SYMBOL TABLE: 080480f4 l d .interp 00000000 08048108 l d .note.ABI-tag 00000000 08048128 l d .hash 00000000 ...... 00000000 l df *ABS* 00000000 initfini.c 08048344 l .text 00000000 gcc2_compiled. 00000000 l df *ABS* 00000000 init.c ...... 08049540 g O *ABS* 00000000 _end 0804843c g O .rodata 00000004 _IO_stdin_used 08049448 g .data 00000000 __data_start 00000000 w *UND* 00000000 __gmon_start__