On 07/10/2007 01:40 PM, Csaba Halász wrote:
> Maybe try the sed hack with a shorter prefix, such as replacing
> _ZNSt6vector with _ZNSt6vectorX. Note that it is a pretty brutal thing
> to do for the whole binary, and might break it in a million ways.
1) It's more likely to work if the replacement string is the same
length as the replaced string, such as:
s/_ZNSt6vector/_ZNSt6vectoX/
not s/_ZNSt6vector/_ZNSt6vectorX/
That's an important part of the trick, if you're going to be
using sed to hack binary files.
2) A prefix that short is brutal indeed. In fglrx_dri there are
57 symbols that begin with _ZNSt6vector ... I thought there was
only one function that had been identified as a troublemaker.
3) I would try
strings /usr/lib/dri/fglrx_dri.so | grep vector.*reserve
expecting to see something like
_ZNSt6vectorI13ShUniformInfoSaIS0_EE7reserveEj
_ZNSt6vectorIi14pool_allocatorIiEE7reserveEj
* _ZNSt6vectorIiSaIiEE7reserveEj
vector::reserve
of which the one that most resembles the starred version is the
one that needs to be hacked.
Unless fglrx_dri has more than one bug :-( .......
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel