mailing list of musl libc
 help / color / mirror / code / Atom feed
From: John Spencer <maillist-musl@barfooze.de>
To: musl@lists.openwall.com
Cc: zg7s@eservices.virginia.edu
Subject: Re: static musl-based gdb and -fPIC
Date: Thu, 22 May 2014 22:14:05 +0200	[thread overview]
Message-ID: <537E5A8D.8090701@barfooze.de> (raw)
In-Reply-To: <53607C30.4010207@eservices.virginia.edu>

Zvi Gilboa wrote:
> On 04/30/2014 12:07 AM, Rich Felker wrote:
>> You might should check the patches used by sabotage or one of the
>> other dists using musl. They probably have dealt with the gdb bugs and
>> probably already have a good fix or workaround.
> Sabotage has several gdb patches, but none of them addresses this. From 
> the [deps] section, it looks like sabotage does not aim to have the 
> python functionality in its static gdb,

correct.

> and from --disable-tui it looks 
> like they encountered a similar problem with ncurses.  The version of 

no, --disable-tui was added so we don't have 2 nearly identical huge gdb 
binaries in /bin.
in fact we do not even link against ncurses, as gdb can be built against 
the much smaller termcap library.
(however ncurses will be picked up automatically if it was installed 
before building gdb, no problems there either.)

> gdb that I built is a bit newer than sabotage's (7.7 vs. 7.6/7.5), but I 
> don't believe that matters.
> 
>>
>>>>> At this point I am no longer seeking a solution (unless you have one
>>>>> ready), but thought I should share this for the record.  As an

also for the record, the problem you encountered with -fPIC was due to a 
.so built unconditionally during gdbserver compilation, and if you have 
-static in your LDFLAGS, the buildsystem will try to create the .so with 
  both -shared and -static, instead of stripping the -static off for 
that step.
--disable-inprocess-agent can be used to get gdbserver without building 
that dso, which seems rather useless anyway.

--JS


      reply	other threads:[~2014-05-22 20:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-20 17:03 writeonce
2014-04-20 20:29 ` writeonce
2014-04-20 20:31 ` Rich Felker
2014-04-20 21:39   ` writeonce
2014-04-21  7:33     ` Szabolcs Nagy
2014-04-21  8:21       ` Szabolcs Nagy
2014-04-21 11:16         ` writeonce
2014-04-21 11:16       ` writeonce
2014-04-29 21:40   ` writeonce
2014-04-30  2:57     ` Rich Felker
2014-04-30  3:26       ` writeonce
2014-04-30  4:07         ` Rich Felker
2014-04-30  4:29           ` Zvi Gilboa
2014-05-22 20:14             ` John Spencer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=537E5A8D.8090701@barfooze.de \
    --to=maillist-musl@barfooze.de \
    --cc=musl@lists.openwall.com \
    --cc=zg7s@eservices.virginia.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).