OLD | NEW |
(Empty) | |
| 1 # RUN: llvm-mc -filetype=obj -triple i686-none-nacl %s -o - \ |
| 2 # RUN: | llvm-objdump -triple i686 -s - | FileCheck --check-prefix=I386 %s |
| 3 |
| 4 # RUN: llvm-mc -filetype=obj -triple x86_64-none-nacl %s -o - \ |
| 5 # RUN: | llvm-objdump -triple x86_64 -s - | FileCheck --check-prefix=X8664 %s |
| 6 |
| 7 # Tests that NaCl object files contain an ELF note section that identifies them |
| 8 # to the binutils gold linker |
| 9 |
| 10 .text |
| 11 foo: |
| 12 ret |
| 13 |
| 14 # There appears to be no way for llvm-objdump to show flags for sections, or |
| 15 # to dump groups like readelf |
| 16 # I386: .group |
| 17 # I386: .note.NaCl.ABI.x86-32 |
| 18 # contents of the words in the note section should be: |
| 19 # sizeof "NaCl" |
| 20 # sizeof "x86-32" |
| 21 # 1 (NT_VERSION) |
| 22 # "NaCl" with nul termination and padding to align 4 |
| 23 # "x86-32" with nul termination and padding to align 4 |
| 24 # I386-NEXT: 0000 05000000 07000000 01000000 4e61436c |
| 25 # I386-NEXT: 0010 00000000 7838362d 33320000 |
| 26 |
| 27 # X8664: .group |
| 28 # X8664: .note.NaCl.ABI.x86-64 |
| 29 # contents of the words in the note section should be: |
| 30 # sizeof "NaCl" |
| 31 # sizeof "x86-64" |
| 32 # 1 (NT_VERSION) |
| 33 # "NaCl" with nul termination and padding to align 4 |
| 34 # "x86-64" with nul termination and padding to align 4 |
| 35 # X8664-NEXT: 0000 05000000 07000000 01000000 4e61436c |
| 36 # X8664-NEXT: 0010 00000000 7838362d 36340000 |
OLD | NEW |