From 0b811b2df37c471e3ff89bf371f5c4c1277ca720 Mon Sep 17 00:00:00 2001 From: Niklas Baumstark Date: Thu, 3 Mar 2016 17:50:33 +0100 Subject: fix bug when detecting libc_start_main return address --- common/libc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/libc.sh b/common/libc.sh index 4d27b6d..b054595 100644 --- a/common/libc.sh +++ b/common/libc.sh @@ -17,9 +17,9 @@ extract_label() { dump_libc_start_main_ret() { local call_main=`objdump -D $1 \ - | grep -A 100 '<__libc_start_main>' \ + | egrep -A 100 '<__libc_start_main.*>' \ | grep call \ - | grep -B 1 '' \ + | egrep -B 1 '' \ | head -n 1 \ | extract_label` local offset=`objdump -D $1 | egrep -A 1 "(^| )$call_main:" | tail -n 1 | extract_label` -- cgit v1.2.3-54-g00ecf