sewardj | 513fc79 | 2002-04-26 11:50:43 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # A simple script to help me ensure that my libpthread.so looks |
| 4 | # from the outside, to the linker, identical to the original. |
| 5 | |
| 6 | nm /lib/libpthread.so.0 | grep " T " | cut -c 10- > orig-T |
| 7 | nm /lib/libpthread.so.0 | grep " D " | cut -c 10- > orig-D |
| 8 | nm /lib/libpthread.so.0 | grep " W " | cut -c 10- > orig-W |
| 9 | |
| 10 | nm ./libpthread.so | grep " T " | cut -c 10- > mine-T |
| 11 | nm ./libpthread.so | grep " D " | cut -c 10- > mine-D |
| 12 | nm ./libpthread.so | grep " W " | cut -c 10- > mine-W |
| 13 | |
| 14 | echo ========================== TEXT orig vs mine ========================= |
| 15 | sdiff -w 80 orig-T mine-T |
| 16 | echo |
| 17 | |
| 18 | echo ========================== WEAK orig vs mine ========================= |
| 19 | sdiff -w 80 orig-W mine-W |
| 20 | echo |
| 21 | |
| 22 | echo ========================== DATA orig vs mine ========================= |
| 23 | sdiff -w 80 orig-D mine-D |
| 24 | echo |