View Single Post
Old 09-13-2010, 09:25 AM   #52
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Quote:
Originally Posted by Mark Nord View Post
Your are welcome!
Just a quick first answer

My reference here says:
  1. instruction stream can't be used as data
  2. adresses to constants are given as offset relative to PC and are read from a literal pool (.got _golbal_offset_tabel_ )
I don't get the meaning of the latter, isn't it related to assembly language, rather than CPU capabilities?
If function is referencing string A from constant pool, what's the deal with referencing (existing) string B instead? I was thinking about "take unlikely to be used under normal circumstances error text, put %d there, reference this string instead of simply "%d"". Or, no idea if that's possible, cutting the string with 0 somewhere and then referencing only part of it with "ref to some symb" + offset.

Quote:
BTW: as the PRS 505 is based on a linux kernel 2.4.17 the mount --bind trick via psrplus.sh should work?
Yes. I've used it intensively.

Quote:
Will it be possible to bind a pached ebook.so? (As described here for the languages resources)

And why is the file first cp (copied if a have done my linux-class correctly) to \tmp and refenzed in the mount --bind again from \Data\ ?
It's an error, /tmp should have been referenced.
The point of binding to /tmp is not to interfere with readers mount/umount (happens with Data when connecting/disconnecting from PC) but it would work both ways without causing trouble most of the time.

PS
By the way, which disassembler do you use?

Last edited by kartu; 09-13-2010 at 09:32 AM.
kartu is offline