|
2012-10-07
, 14:06
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#12
|
|
2012-10-07
, 14:36
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#13
|
export LD_LIBRARY_PATH=. ./run
The Following User Says Thank You to szopin For This Useful Post: | ||
|
2012-10-07
, 14:57
|
Posts: 2,802 |
Thanked: 4,491 times |
Joined on Nov 2007
|
#14
|
The Following User Says Thank You to lma For This Useful Post: | ||
|
2012-10-07
, 15:07
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#15
|
The Following User Says Thank You to szopin For This Useful Post: | ||
|
2012-10-07
, 15:27
|
Posts: 2,802 |
Thanked: 4,491 times |
Joined on Nov 2007
|
#16
|
When you say Nokia patched it to report 2.7 - any way to trick it outside of patching libc (not even sure how to do that)?
$ readelf -a adom | grep @GLIBC_2.7 18: 0000980c 0 FUNC GLOBAL DEFAULT UND __isoc99_sscanf@GLIBC_2.7 (4) 74: 000097d0 0 FUNC GLOBAL DEFAULT UND __isoc99_fscanf@GLIBC_2.7 (4)
If it is just a patch in reporting, did they also patch something in to return kernel too old msg?
The above approach shouldn't crash anything except adom, as Addison managed to run quite a few console-only N900 binaries on his N800, was hoping N900 libc wouldn't complain (vs raspbian 2.13 which is a lot newer)
$ LD_PRELOAD=./libc-2.5.so /lib/ld-2.5.so ./adom
Illegal instruction (core dumped)
|
2012-10-07
, 15:43
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#17
|
Might be doable. The adom binary seems to require only a couple 2.7 functions:
so something like this could work.Code:$ readelf -a adom | grep @GLIBC_2.7 18: 0000980c 0 FUNC GLOBAL DEFAULT UND __isoc99_sscanf@GLIBC_2.7 (4) 74: 000097d0 0 FUNC GLOBAL DEFAULT UND __isoc99_fscanf@GLIBC_2.7 (4)
Just tried it:
The Following User Says Thank You to szopin For This Useful Post: | ||
|
2012-10-07
, 15:52
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#18
|
The Following User Says Thank You to szopin For This Useful Post: | ||
Nope:
Last edited by lma; 2012-10-07 at 13:26.