Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

<sangr> home is where the highest bandwidth is


devel / comp.lang.c++ / Re: Find data somewhere on the stack

SubjectAuthor
o Re: Find data somewhere on the stackFrederick Virchanza Gotham

1
Re: Find data somewhere on the stack

<739b2d11-d2d0-4fd0-bb6f-5f9b05c27a3en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=899&group=comp.lang.c%2B%2B#899

  copy link   Newsgroups: comp.lang.c++
X-Received: by 2002:a05:620a:4453:b0:765:2eef:e3ba with SMTP id w19-20020a05620a445300b007652eefe3bamr2062qkp.8.1689708853380;
Tue, 18 Jul 2023 12:34:13 -0700 (PDT)
X-Received: by 2002:a05:6808:201e:b0:3a1:f2d4:a3bf with SMTP id
q30-20020a056808201e00b003a1f2d4a3bfmr464849oiw.4.1689708852925; Tue, 18 Jul
2023 12:34:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c++
Date: Tue, 18 Jul 2023 12:34:12 -0700 (PDT)
In-Reply-To: <ef52a538-f71e-464f-afe2-3a52265e6a38n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=92.40.182.164; posting-account=w4UqJAoAAAAYC-PItfDbDoVGcg0yISyA
NNTP-Posting-Host: 92.40.182.164
References: <ef52a538-f71e-464f-afe2-3a52265e6a38n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <739b2d11-d2d0-4fd0-bb6f-5f9b05c27a3en@googlegroups.com>
Subject: Re: Find data somewhere on the stack
From: cauldwel...@gmail.com (Frederick Virchanza Gotham)
Injection-Date: Tue, 18 Jul 2023 19:34:13 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2453
 by: Frederick Virchanza - Tue, 18 Jul 2023 19:34 UTC

On Sunday 23 April 2023, Frederick Virchanza Gotham wrote:
>
> So if we push this UUID onto the stack,
> and then place our data right beside it on
> the stack, then later on we can search the
> stack for this UUID and we'll find our data
> right beside it.

It's taken me 3 months but today I've come up with a legitimate use for this.

If you've been following the C++ Standard Proposals mailing list these past few days, I'm trying to come up with a universal header file to ensure elision of move/copy operations with Named Return Value Optimisation.

I order to implement this on 64-bit ARM with the aarch64 instruction set, I need to write a function that will:
(1) Move address of return value into 1st parameter
(2) Jump to a location stored in a thread_local variable

It turns out that accessing thread_local variables on aarch64 isn't so simple, as there's more than one system for storing them, see how complicated it can be here:

http://bambowu.github.io/linux/RelocationAndTheadLocalStorage/

Furthermore I want the code to work fine on a microcontroller that doesn't have multithreading support.

And so instead of putting the jump address in a thread_local variable, I'll just push it onto the stack beside a known UUID.

I knew this would come in handy somewhere.


devel / comp.lang.c++ / Re: Find data somewhere on the stack

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor