Re: PG_MODULE_MAGIC lost if strip the object file

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: PG_MODULE_MAGIC lost if strip the object file
Дата
Msg-id 20080708165137.GD4095@alvh.no-ip.org
обсуждение исходный текст
Ответ на PG_MODULE_MAGIC lost if strip the object file  (Michael Enke <michael.enke@wincor-nixdorf.com>)
Ответы Re: PG_MODULE_MAGIC lost if strip the object file  (Michael Enke <michael.enke@wincor-nixdorf.com>)
Список pgsql-general
Michael Enke wrote:
> Hi list,
> I create a dynamic library with the PG_MODULE_MAGIC under Linux.
> No problem in normal situation, but if I strip the .o file,
> that information seems to get lost and I get:
> ERROR:  incompatible library "...so": missing magic block
> TIP:  Extension libraries are required to use the PG_MODULE_MAGIC macro.
>
> I want to strip my code to make it harder to use gdb on it.
> Any suggestion how I can get it working "with" stripping the .o file?

How about not compiling with -g?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

В списке pgsql-general по дате отправления:

Предыдущее
От: Lew
Дата:
Сообщение: Re: Quick way to alter a column type?
Следующее
От: gabrielle
Дата:
Сообщение: Sign up for PDXPUG PgDay! July 20, 2008