mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
32 lines
1.0 KiB
Bash
Executable File
32 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# A simple script to help me ensure that my libpthread.so looks
|
|
# from the outside, to the linker, identical to the original.
|
|
|
|
nm /lib/libpthread.so.0 | grep " T " | cut -c 10- > orig-T
|
|
nm /lib/libpthread.so.0 | grep " D " | cut -c 10- > orig-D
|
|
nm /lib/libpthread.so.0 | grep " W " | cut -c 10- > orig-W
|
|
nm /lib/libpthread.so.0 | grep " U " | cut -c 10- > orig-U
|
|
|
|
nm ./libpthread.so | grep " T " | cut -c 10- > mine-T
|
|
nm ./libpthread.so | grep " D " | cut -c 10- > mine-D
|
|
nm ./libpthread.so | grep " W " | cut -c 10- > mine-W
|
|
nm ./libpthread.so | grep " U " | cut -c 10- > mine-U
|
|
|
|
echo ========================== TEXT orig vs mine =========================
|
|
sdiff -w 80 orig-T mine-T
|
|
echo
|
|
|
|
echo ========================== WEAK orig vs mine =========================
|
|
sdiff -w 80 orig-W mine-W
|
|
echo
|
|
|
|
echo ========================== DATA orig vs mine =========================
|
|
sdiff -w 80 orig-D mine-D
|
|
echo
|
|
|
|
echo ========================== UNDF orig vs mine =========================
|
|
sdiff -w 80 orig-U mine-U
|
|
echo
|
|
|