C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Ensure ABI compatibility at runtime -- std::layout_of

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 14 Nov 2024 13:49:01 -0700
On Thursday 14 November 2024 04:50:42 Mountain Standard Time Peter Bindels via
Std-Proposals wrote:
> Note that executables without section headers cannot be loaded by GDB. LLDB
> does work with them. So whether this is just a theoretical problem or a
> practical one too is arguable.

It's an orthogonal problem. The fact that you can't load the executable with
GDB may be considered a feature, not a bug: if I don't want you to debug my
executable, I see no reason to give you more information that would allow you
to reverse engineer it than absolutely necessary.

The fact is that sstrip exists and we got a bug report about this. Therefore,
section headers are not the way to go.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2024-11-14 20:49:10