Skip to content

Commit

Permalink
[lanai] Update ELF number to correspond to the assigned number.
Browse files Browse the repository at this point in the history
Change EM_LANAI to correspond to machine number assigned by Xinuos.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274042 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
jpienaar committed Jun 28, 2016
1 parent cfa7009 commit 041fc26
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions include/llvm/Support/ELF.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,16 +310,12 @@ enum {
EM_NORC = 218, // Nanoradio Optimized RISC
EM_CSR_KALIMBA = 219, // CSR Kalimba architecture family
EM_AMDGPU = 224, // AMD GPU architecture
EM_LANAI = 244, // Lanai 32-bit processor

// A request has been made to the maintainer of the official registry for
// such numbers for an official value for WebAssembly. As soon as one is
// allocated, this enum will be updated to use it.
EM_WEBASSEMBLY = 0x4157, // WebAssembly architecture

// A request has been made to the maintainer of the official registry for
// an official value for Lanai. As soon as one is allocated, this enum will be
// updated to use it.
EM_LANAI = 0x8123, // Lanai 32-bit processor
};

// Object file classes.
Expand Down
Binary file modified test/tools/llvm-readobj/Inputs/relocs.obj.elf-lanai
Binary file not shown.
Binary file modified test/tools/llvm-readobj/Inputs/trivial.obj.elf-lanai
Binary file not shown.
2 changes: 1 addition & 1 deletion test/tools/llvm-readobj/file-headers.test
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ ELF-LANAI-NEXT: ABIVersion: 0
ELF-LANAI-NEXT: Unused: (00 00 00 00 00 00 00)
ELF-LANAI-NEXT: }
ELF-LANAI-NEXT: Type: Relocatable (0x1)
ELF-LANAI-NEXT: Machine: EM_LANAI (0x8123)
ELF-LANAI-NEXT: Machine: EM_LANAI (0xF4)
ELF-LANAI-NEXT: Version: 1
ELF-LANAI-NEXT: Entry: 0x0
ELF-LANAI-NEXT: ProgramHeaderOffset: 0x0
Expand Down

0 comments on commit 041fc26

Please sign in to comment.