public inbox for gentoo-soc@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ahmed Soliman <ahmedsoliman0x666@gmail.com>
To: gentoo-soc@lists.gentoo.org, Benda Xu <heroxbd@gentoo.org>,
	 Luca Barbato <lu_zero@gentoo.org>
Subject: Re: [gentoo-soc] Weekly Report: Porting relibc Relibc
Date: Mon, 6 Jul 2020 09:45:37 +0200	[thread overview]
Message-ID: <CAAGnT3YLdQnYDNzKgZ4OvSCq66YkOBVxLa4RcHtbmdYE0tzV_Q@mail.gmail.com> (raw)
In-Reply-To: <f49bb073-2486-7249-7c4f-f93e34b39eb5@gentoo.org>

Hi,

I will try to add a short description here, However, the post should
be describing most of the technical issues that I kept track of.

So i was working on compiling gcc under gentoo and having it linked
against relibc. there were plugins for LTO that are part of gcc but
used via ld. The plugins are shared object styles, so in order for
them to work I needed a working dlopen, dlclose and dlsym. which was
not yet implemented in relibc. I implemented all 3, There were
challenges where relibc and rust stdlib are not referentially
transparent. And that caused problems where there was a relibc copy
statically linked against ld.so for internal use and one that is
dynamically linked against an arbitrary a.out for external use and
although both are the same binary wise, they cannot be used
interchangeably for some reason. It was hard figuring out.

That is also why I mentioned that gdb wasn't useful, not because it
wasn't working (in fact I added support for it in a previous patch
set) but because of the nature of the bug I faced, It was not
something that one can pinpoint quickly when using a debugger.

Thanks,
Ahmed.

On Mon, 6 Jul 2020 at 08:22, Luca Barbato <lu_zero@gentoo.org> wrote:
>
> On 06/07/2020 00:06, Ahmed Soliman wrote:
> > Hello,
> >
>
> Hi, when gdb is having problems, rr might help you. I guess you know it
> already but just in case :)
>
> Thank you for your nice blogpost.
>
> lu
>
>


  reply	other threads:[~2020-07-06  7:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-05 22:06 [gentoo-soc] Weekly Report: Porting relibc Relibc Ahmed Soliman
2020-07-06  1:11 ` Benda Xu
2020-07-06  6:22 ` Luca Barbato
2020-07-06  7:45   ` Ahmed Soliman [this message]
2020-07-06  8:55     ` Luca Barbato
2020-07-06  9:41       ` Ahmed Soliman

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=CAAGnT3YLdQnYDNzKgZ4OvSCq66YkOBVxLa4RcHtbmdYE0tzV_Q@mail.gmail.com \
    --to=ahmedsoliman0x666@gmail.com \
    --cc=gentoo-soc@lists.gentoo.org \
    --cc=heroxbd@gentoo.org \
    --cc=lu_zero@gentoo.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox