[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] [PATCH 7/9] Remove -rdynamic



Zdenek Kabelac <zkabelac redhat com> writes:

> This patch might be a bit contraversional. It removes -rdynamic from
> linking of lvm.statis and dmeventd.static. In my understanding
> this compiler flag (or "-Wl,--export-dynamic") is mainly useful
> for dynamic linked libraries. It should not be needed for linking
> of static binary. But I could be wrong here...
(1) From man: This option is needed for some uses of "dlopen" or to
allow obtaining backtraces from within a program.

(2) Also according to manual, you need -rdynamic to allow dlopen'd
things to use symbols from the "host" binary.

We probably need not be concerned with (2) since we don't dlopen in
lvm.static as far as I can tell. As for (1), as long as debuginfo (-g)
is available, this is, as far as I can tell, redundant. So it *should*
be safe to remove this.

Yours,
   Petr.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]