mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Use ELFOSABI_NONE instead of ELFOSABI_LINUX.
The doesn't seem to be a difference and ELFOSABI_NONE seems to be far more common: * Linux doesn't care when loading and puts ELFOSABI_NONE on core dumps. * Gold and bfd ld produce files with ELFOSABI_NONE. * Gold and bfd ld seems to ignore EI_OSABI other than for freebsd. * Gas puts ELFOSABI_NONE in most .o files. llvm-svn: 248534
This commit is contained in:
parent
4f500cff99
commit
7b47047ff9
@ -57,8 +57,6 @@ public:
|
||||
case Triple::PS4:
|
||||
case Triple::FreeBSD:
|
||||
return ELF::ELFOSABI_FREEBSD;
|
||||
case Triple::Linux:
|
||||
return ELF::ELFOSABI_LINUX;
|
||||
default:
|
||||
return ELF::ELFOSABI_NONE;
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
# RUN: llvm-mc -filetype=obj -triple aarch64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=AARCH64-OSABI %s
|
||||
# AARCH64-OSABI: OS/ABI: SystemV (0x0)
|
||||
# RUN: llvm-mc -filetype=obj -triple aarch64 %s -o -| llvm-readobj -h | FileCheck %s
|
||||
# RUN: llvm-mc -filetype=obj -triple aarch64-linux-gnu %s -o -| llvm-readobj -h | FileCheck %s
|
||||
|
||||
# RUN: llvm-mc -filetype=obj -triple aarch64-linux-gnu %s -o -| llvm-readobj -h | FileCheck --check-prefix=AARCH64-LINUX-OSABI %s
|
||||
# AARCH64-LINUX-OSABI: OS/ABI: GNU/Linux (0x3)
|
||||
# CHECK: OS/ABI: SystemV (0x0)
|
||||
|
@ -36,6 +36,6 @@
|
||||
// CHECK-LE64: Ident {
|
||||
// CHECK-LE64: Class: 64-bit
|
||||
// CHECK-LE64: DataEncoding: LittleEndian
|
||||
// CHECK-LE64: OS/ABI: GNU/Linux
|
||||
// CHECK-LE64: OS/ABI: SystemV
|
||||
// CHECK-LE64: }
|
||||
// CHECK-LE64: }
|
||||
|
Loading…
Reference in New Issue
Block a user