Re: PG_MODULE_MAGIC lost if strip the object file - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: PG_MODULE_MAGIC lost if strip the object file
Date
Msg-id 20080708165137.GD4095@alvh.no-ip.org
Whole thread Raw
In response to PG_MODULE_MAGIC lost if strip the object file  (Michael Enke <michael.enke@wincor-nixdorf.com>)
Responses Re: PG_MODULE_MAGIC lost if strip the object file
List 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 by date:

Previous
From: Lew
Date:
Subject: Re: Quick way to alter a column type?
Next
From: gabrielle
Date:
Subject: Sign up for PDXPUG PgDay! July 20, 2008