Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: test/MC/X86/elf-note-nacl.s

Issue 15067009: LLVM: Add ELF Note section to NaCl object files identifying them as such to gold (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: retry upload Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp ('K') | « test/MC/ARM/elf-note-nacl.s ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698