blob: b7ba8503ec38d5ffcb0c4cecf5d4483b03c4abf2 [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
sewardj26e5da62002-12-15 02:05:02 +00009nm /lib/libpthread.so.0 | grep " U " | cut -c 10- > orig-U
sewardj513fc792002-04-26 11:50:43 +000010
11nm ./libpthread.so | grep " T " | cut -c 10- > mine-T
12nm ./libpthread.so | grep " D " | cut -c 10- > mine-D
13nm ./libpthread.so | grep " W " | cut -c 10- > mine-W
sewardj26e5da62002-12-15 02:05:02 +000014nm ./libpthread.so | grep " U " | cut -c 10- > mine-U
sewardj513fc792002-04-26 11:50:43 +000015
16echo ========================== TEXT orig vs mine =========================
17sdiff -w 80 orig-T mine-T
18echo
19
20echo ========================== WEAK orig vs mine =========================
21sdiff -w 80 orig-W mine-W
22echo
23
24echo ========================== DATA orig vs mine =========================
25sdiff -w 80 orig-D mine-D
26echo
sewardj26e5da62002-12-15 02:05:02 +000027
28echo ========================== UNDF orig vs mine =========================
29sdiff -w 80 orig-U mine-U
30echo
31