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 |
sewardj | 26e5da6 | 2002-12-15 02:05:02 +0000 | [diff] [blame] | 9 | nm /lib/libpthread.so.0 | grep " U " | cut -c 10- > orig-U |
sewardj | 513fc79 | 2002-04-26 11:50:43 +0000 | [diff] [blame] | 10 | |
| 11 | nm ./libpthread.so | grep " T " | cut -c 10- > mine-T |
| 12 | nm ./libpthread.so | grep " D " | cut -c 10- > mine-D |
| 13 | nm ./libpthread.so | grep " W " | cut -c 10- > mine-W |
sewardj | 26e5da6 | 2002-12-15 02:05:02 +0000 | [diff] [blame] | 14 | nm ./libpthread.so | grep " U " | cut -c 10- > mine-U |
sewardj | 513fc79 | 2002-04-26 11:50:43 +0000 | [diff] [blame] | 15 | |
| 16 | echo ========================== TEXT orig vs mine ========================= |
| 17 | sdiff -w 80 orig-T mine-T |
| 18 | echo |
| 19 | |
| 20 | echo ========================== WEAK orig vs mine ========================= |
| 21 | sdiff -w 80 orig-W mine-W |
| 22 | echo |
| 23 | |
| 24 | echo ========================== DATA orig vs mine ========================= |
| 25 | sdiff -w 80 orig-D mine-D |
| 26 | echo |
sewardj | 26e5da6 | 2002-12-15 02:05:02 +0000 | [diff] [blame] | 27 | |
| 28 | echo ========================== UNDF orig vs mine ========================= |
| 29 | sdiff -w 80 orig-U mine-U |
| 30 | echo |
| 31 | |