mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 15:46:45 +00:00

Also change some options that have different semantics (cause confusion) in llvm-readelf mode: -s => -S -t => --symbols -sd => --section-data llvm-svn: 359651
13 lines
480 B
ArmAsm
13 lines
480 B
ArmAsm
// REQUIRES: x86
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-windows %s -o %t.obj
|
|
// RUN: lld-link -entry:main -subsystem:console %t.obj -out:%t.exe
|
|
// RUN: llvm-readobj --sections %t.exe | FileCheck %s
|
|
.globl main
|
|
main:
|
|
ret
|
|
|
|
// Check that the first section data comes at 512 bytes in the file.
|
|
// If the size allocated for headers would include size for section
|
|
// headers which aren't written, PointerToRawData would be 0x400 instead.
|
|
// CHECK: PointerToRawData: 0x200
|