Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 ; RUN: llc -filetype=obj -mtriple armv7-none-nacl-gnueabi %s -o - \ | |
| 2 ; RUN: | llvm-objdump -triple armv7 -s - | FileCheck %s | |
| 3 | |
| 4 ; Tests that NaCl object files contain an ELF note section that identifies them | |
| 5 ; to the binutils gold linker | |
| 6 | |
| 7 define void @main() { | |
| 8 ret void | |
| 9 } | |
| 10 | |
| 11 ; There appears to be no way for llvm-objdump to show flags for sections, or | |
| 12 ; to dump groups like readelf | |
|
Mark Seaborn
2013/05/10 19:52:46
Add "." at end of sentence to separate from the ne
Derek Schuff
2013/05/10 22:59:26
Done.
| |
| 13 ; CHECK: .group | |
| 14 ; CHECK: .note.NaCl.ABI.arm | |
| 15 ; contents of the words in the note section should be: | |
|
Mark Seaborn
2013/05/10 19:52:46
"The contents..." (for readability)
Derek Schuff
2013/05/10 22:59:26
Done.
| |
| 16 ; sizeof "NaCl" | |
|
Mark Seaborn
2013/05/10 19:52:46
Maybe indent for readability: '; sizeof "NaCl"'
Derek Schuff
2013/05/10 22:59:26
Done.
| |
| 17 ; sizeof "arm" | |
| 18 ; 1 (NT_VERSION) | |
| 19 ; "NaCl" with nul termination and padding to align 4 | |
| 20 ; "arm" with nul termination and padding to align 4 | |
| 21 ; CHECK-NEXT: 0000 05000000 04000000 01000000 4e61436c | |
| 22 ; CHECK-NEXT: 0010 00000000 61726d00 | |
| OLD | NEW |