Index: llvm/trunk/include/llvm/Object/ELFTypes.h =================================================================== --- llvm/trunk/include/llvm/Object/ELFTypes.h +++ llvm/trunk/include/llvm/Object/ELFTypes.h @@ -44,7 +44,7 @@ template struct ELFType { private: template - using packed = support::detail::packed_endian_specific_integral; + using packed = support::detail::packed_endian_specific_integral; public: static const endianness TargetEndianness = E; Index: llvm/trunk/test/Object/invalid-alignment.test =================================================================== --- llvm/trunk/test/Object/invalid-alignment.test +++ llvm/trunk/test/Object/invalid-alignment.test @@ -1,7 +1,15 @@ # RUN: yaml2obj %s -o %t.o -# RUN: not llvm-readobj -r %t.o 2>&1 | FileCheck %s +# RUN: llvm-readobj -r %t.o 2>&1 | FileCheck %s -# CHECK: Error reading file: unaligned data +# CHECK: Format: ELF64-x86-64 +# CHECK-NEXT: Arch: x86_64 +# CHECK-NEXT: AddressSize: 64bit +# CHECK-NEXT: LoadName: +# CHECK-NEXT: Relocations [ +# CHECK-NEXT: Section (2) .rela.foo { +# CHECK-NEXT: 0x0 R_X86_64_NONE - 0x0 +# CHECK-NEXT: } +# CHECK-NEXT: ] --- !ELF FileHeader: Index: llvm/trunk/test/Object/invalid.test =================================================================== --- llvm/trunk/test/Object/invalid.test +++ llvm/trunk/test/Object/invalid.test @@ -70,10 +70,6 @@ RUN: FileCheck --check-prefix=INVALID-RELOC-SH-OFFSET %s INVALID-RELOC-SH-OFFSET: invalid section offset -RUN: not llvm-readobj -t %p/Inputs/invalid-sections-address-alignment.x86-64 2>&1 | \ -RUN: FileCheck --check-prefix=INVALID-SEC-ADDRESS-ALIGNMENT %s -INVALID-SEC-ADDRESS-ALIGNMENT: invalid alignment of section headers - RUN: not llvm-readobj -t %p/Inputs/invalid-section-size2.elf 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-SECTION-SIZE2 %s INVALID-SECTION-SIZE2: invalid section offset