Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list

Doug Evans
2010-06-05T02:48:43Z

On Fri, May 28, 2010 at 11:52 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Thu, 27 May 2010 21:54:34 +0200, Tom Tromey wrote:
>> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
>>
>> Jan> gdb/
>> Jan> 2010-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
>> Jan> gdb/gdbserver/
>> Jan> 2010-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
>> This is ok.  Thanks.
>
> Checked-in:
>        http://sourceware.org/ml/gdb-cvs/2010-05/msg00247.html

I've been playing with this a bit and got the following:

"ImportError: /usr/grte/v1/k8-linux/lib/python2.4/lib-dynload/itertools.so:
undefined symbol: PyExc_StopIteration"

when I did "import itertools".

I was statically linking libpythonX.Y.a.

I'm not sure what the right fix is. IWBN if the python folks have
anticipated this and provide something like proc-service.list for
python.
I don't know all the python symbols that need to be exported ... maybe
there's a simple regexp (or a small number of them) that could find
them all.
[OTOH it might be a bit too fragile.]
Alternatively, one could disable this feature when python is being
linked statically.