Created
September 16, 2015 07:21
-
-
Save oglops/3f2d03810229103456d1 to your computer and use it in GitHub Desktop.
keep fchdir symbol in libc.so.0 on tomato shibby v131, so that perpd can run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -aur '--exclude=.git' /home/oglop/tomato/tomato_intact/release/src/btools/libfoo.pl /home/oglop/tomato/tomato_latest/release/src/btools/libfoo.pl | |
--- /home/oglop/tomato/tomato_intact/release/src/btools/libfoo.pl 2015-09-16 11:51:50.750693058 +0800 | |
+++ /home/oglop/tomato/tomato_latest/release/src/btools/libfoo.pl 2015-09-16 15:06:21.243200192 +0800 | |
@@ -493,6 +493,17 @@ | |
# <>; | |
return 0; | |
} | |
+ | |
+ # keep this symbol for libc | |
+ my @keep_symbols=("fchdir"); | |
+ my $tmp; | |
+ if ($name eq "libc.so.0"){ | |
+ foreach $tmp (@keep_symbols) { | |
+ @unused = grep !/$tmp/, @unused; | |
+ push @used, $tmp; | |
+ } | |
+ } | |
+ | |
$cmd .= " -u " . join(" -u ", @used) . " ". $arc; | |
print LOG "Command: $cmd\n"; | |
diff -aur '--exclude=.git' /home/oglop/tomato/tomato_intact/release/src/router/snmp/aclocal.m4 /home/oglop/tomato/tomato_latest/release/src/router/snmp/aclocal.m4 | |
--- /home/oglop/tomato/tomato_intact/release/src/router/snmp/aclocal.m4 2015-09-16 11:52:37.600892247 +0800 | |
+++ /home/oglop/tomato/tomato_latest/release/src/router/snmp/aclocal.m4 2015-09-16 11:25:27.612883687 +0800 | |
@@ -2793,7 +2793,7 @@ | |
NM=$lt_NM | |
# A symbol stripping program | |
-STRIP=$STRIP | |
+STRIP="$STRIP" | |
# Used to examine libraries when file_magic_cmd begins "file" | |
MAGIC_CMD=$MAGIC_CMD | |
diff -aur '--exclude=.git' /home/oglop/tomato/tomato_intact/release/src/router/snmp/aclocal.m4.libtool /home/oglop/tomato/tomato_latest/release/src/router/snmp/aclocal.m4.libtool | |
--- /home/oglop/tomato/tomato_intact/release/src/router/snmp/aclocal.m4.libtool 2015-09-16 11:52:37.602892256 +0800 | |
+++ /home/oglop/tomato/tomato_latest/release/src/router/snmp/aclocal.m4.libtool 2015-09-16 11:25:35.108916396 +0800 | |
@@ -2793,7 +2793,7 @@ | |
NM=$lt_NM | |
# A symbol stripping program | |
-STRIP=$STRIP | |
+STRIP="$STRIP" | |
# Used to examine libraries when file_magic_cmd begins "file" | |
MAGIC_CMD=$MAGIC_CMD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment