blob: 4a46f01e6b7353efdfb3e94eab59bdead9c4da36 [file] [log] [blame]
sewardj513fc792002-04-26 11:50:43 +00001#!/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
6nm /lib/libpthread.so.0 | grep " T " | cut -c 10- > orig-T
7nm /lib/libpthread.so.0 | grep " D " | cut -c 10- > orig-D
8nm /lib/libpthread.so.0 | grep " W " | cut -c 10- > orig-W
9
10nm ./libpthread.so | grep " T " | cut -c 10- > mine-T
11nm ./libpthread.so | grep " D " | cut -c 10- > mine-D
12nm ./libpthread.so | grep " W " | cut -c 10- > mine-W
13
14echo ========================== TEXT orig vs mine =========================
15sdiff -w 80 orig-T mine-T
16echo
17
18echo ========================== WEAK orig vs mine =========================
19sdiff -w 80 orig-W mine-W
20echo
21
22echo ========================== DATA orig vs mine =========================
23sdiff -w 80 orig-D mine-D
24echo