[lldb-dev] When should ArchSpecs match?
Zachary Turner via lldb-dev
lldb-dev at lists.llvm.org
Fri Dec 7 02:37:57 PST 2018
We can already say that with OSType::Unknown. That’s different than “i know
that no OS exists”
On Fri, Dec 7, 2018 at 12:00 AM Pavel Labath <pavel at labath.sk> wrote:
> On 07/12/2018 01:22, Jason Molenda via lldb-dev wrote:
> > Oh sorry I missed that. Yes, I think a value added to the OSType for
> NoOS or something would work. We need to standardize on a textual
> representation for this in a triple string as well, like 'none'. Then with
> arm64-- and arm64-*-* as UnknownVendor + UnknownOS we can have these marked
> as "compatible" with any other value in the case Adrian is looking at.
> Sounds good to me.
> As another data point, it is usually impossible to tell from looking at
> an ELF file which os it is intended to run on. You can tell the
> architecture because it's right in the elf header, but that's about it.
> Some OSs get around this by adding a special section like
> .this.is.an.android.binary, but not all of them. So in general, we need
> to be able to say "I have no idea which OS is this binary intended for".
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev