[PATCH] D58026: LLD: Preserve ABI version during linking ELF

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 11 14:27:54 PST 2019


ruiu added a comment.

I quickly hacked up this patch: https://gist.github.com/rui314/f3cd508b6cbbde763fc13bc6190d7505  Does this look good?



================
Comment at: ELF/Writer.cpp:2407
+  EHdr->e_ident[EI_ABIVERSION] =
+      Config->ABIVersion == 0 ? getAbiVersion() : Config->ABIVersion;
   EHdr->e_type = getELFType();
----------------
getAbiVersion is intended to be the single place to compute an ABI version number to write to to an output file. You should always call it under any circumstances.


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

https://reviews.llvm.org/D58026





More information about the llvm-commits mailing list