[Lldb-commits] [PATCH] Update ObjectFileELF to detect ELF triple based on ELF notes and the ELF header.

Ed Maste emaste at freebsd.org
Thu Jun 26 11:21:08 PDT 2014


It turns out this still fails in some cases, as it seems somewhere in
ModuleList::GetSharedModule's call of module_sp->GetObjectFile there's
an exact match on the platform triple string.  On FreeBSD the platform
triple ends up as e.g. "x86_64-unknown-freebsd9.1" (with the version
appended), and the version is detected at cmake run time.

I'm not sure what the right fix is.

a) Add code to Host::GetArchitecture() to strip the version off
(returning x86_64-unknown-freebsd), and going back to the earlier
version of the FreeBSD ABI note handling.
b) Change the match to compare only the Arch and OS.
c) Something else?

http://reviews.llvm.org/D4302






More information about the lldb-commits mailing list