[prev in list] [next in list] [prev in thread] [next in thread] 

List:       musl
Subject:    Re: [musl] compiling musl on x86_64 linux with pcc
From:       u-igbb () aetey ! se
Date:       2014-09-24 8:26:24
Message-ID: 20140924082624.GC20593 () example ! net
[Download RAW message or body]


On Tue, Sep 23, 2014 at 03:31:34PM -0400, Rich Felker wrote:
> > If I build a shared library with pcc without supplying -Wl,-Bsymbolic
> > (or -Wl,-Bsymbolic-functions as musl does) then a(ny) binary linked to that
> > library segfaults at start even if it does not actually need/use the
> > library. I noticed this with libpcap and wonder what is the reason. Adding
> > -Wl,-Bsymbolic makes everything work so the code is not exactly broken.

> Have you checked that this happens with all libs, or did you only
> observe it with libpcap? If you have a minimal example .so file that
> causes the crash when loaded, can you post it somewhere I could
> download a copy to analyze, and also post the commands you used to
> produce it?

Attaching the test case, it is small enough.

Rune

["libfoo.tar.gz" (application/x-tar-gz)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic