[PATCH] D94475: [MC] Emit ELF files with ELFOSABI_GNU if specified in triple

Moritz Sichert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 12 10:38:12 PST 2021


MoritzS added a comment.

In D94475#2493513 <https://reviews.llvm.org/D94475#2493513>, @jrtc27 wrote:

> Looking at the original motivation for the patch I'm not convinced that llvm-readelf etc shouldn't just fall back on displaying the "normal" set of GNU extensions even for ELFOSABI_NONE (i.e. those that FreeBSD and GNU have in common). Things like that are really just part of de-facto generic ELF these days. What does binutils do?

The snippets from readelf from the patch are actually from GNU binutils readelf, not from llvm-readelf. So binutils does in fact only display the GNU extensions with ELFOSABI_GNU.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94475/new/

https://reviews.llvm.org/D94475



More information about the llvm-commits mailing list