[lld] r244033 - Use ELFOSABI_NONE. This matches both bfd ld and gold.

Rafael Espindola rafael.espindola at gmail.com
Wed Aug 5 04:55:52 PDT 2015


Author: rafael
Date: Wed Aug  5 06:55:52 2015
New Revision: 244033

URL: http://llvm.org/viewvc/llvm-project?rev=244033&view=rev
Log:
Use ELFOSABI_NONE. This matches both bfd ld and gold.

Modified:
    lld/trunk/ELF/Writer.cpp
    lld/trunk/test/elf2/basic.test

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=244033&r1=244032&r2=244033&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Aug  5 06:55:52 2015
@@ -123,7 +123,7 @@ template <class ELFT> void Writer<ELFT>:
   EHdr->e_ident[EI_CLASS] = ELFCLASS64;
   EHdr->e_ident[EI_DATA] = ELFDATA2LSB;
   EHdr->e_ident[EI_VERSION] = EV_CURRENT;
-  EHdr->e_ident[EI_OSABI] = ELFOSABI_GNU;
+  EHdr->e_ident[EI_OSABI] = ELFOSABI_NONE;
 
   EHdr->e_type = ET_EXEC;
   EHdr->e_machine = EM_X86_64;

Modified: lld/trunk/test/elf2/basic.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/basic.test?rev=244033&r1=244032&r2=244033&view=diff
==============================================================================
--- lld/trunk/test/elf2/basic.test (original)
+++ lld/trunk/test/elf2/basic.test Wed Aug  5 06:55:52 2015
@@ -16,7 +16,7 @@ _start:
 # CHECK-NEXT:     Class: 64-bit (0x2)
 # CHECK-NEXT:     DataEncoding: LittleEndian (0x1)
 # CHECK-NEXT:     FileVersion: 1
-# CHECK-NEXT:     OS/ABI: GNU/Linux (0x3)
+# CHECK-NEXT:     OS/ABI: SystemV (0x0)
 # CHECK-NEXT:     ABIVersion: 0
 # CHECK-NEXT:     Unused: (00 00 00 00 00 00 00)
 # CHECK-NEXT:   }




More information about the llvm-commits mailing list