Re: PG_MODULE_MAGIC lost if strip the object file

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Michael Enke <michael(dot)enke(at)wincor-nixdorf(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PG_MODULE_MAGIC lost if strip the object file
Date: 2008-07-08 16:51:37
Message-ID: 20080708165137.GD4095@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Enke 2008-07-08 16:54:02 Re: PG_MODULE_MAGIC lost if strip the object file
Previous Message Keaton Adams 2008-07-08 16:14:34 Re: Query running slow but was running fine before