Use ELFOSABI_NONE. This matches both bfd ld and gold.

llvm-svn: 244033
This commit is contained in:
Rafael Espindola 2015-08-05 11:55:52 +00:00
parent c80b519f87
commit 87ee8dcb64
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ template <class ELFT> void Writer<ELFT>::writeHeader() {
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;

View File

@ -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: }