1 # Check the properties of added sections.
2 # By default, sections are SHT_PROGBITS, but .note sections (excluding
3 # .note.GNU-stack) are SHT_NOTE sections.
5 # RUN: yaml2obj %s -o %t.o
6 # RUN: llvm-objcopy --add-section=.foo=/dev/null %t.o %t-foo.o
7 # RUN: llvm-objcopy --add-section=.note.foo=/dev/null %t.o %t-regular-note.o
8 # RUN: llvm-objcopy --add-section=.note.GNU-stack=/dev/null %t.o %t-gnu-stack.o
9 # RUN: llvm-readelf --sections %t-foo.o | FileCheck %s --check-prefix=NORMAL
10 # RUN: llvm-readelf --sections %t-regular-note.o | FileCheck %s --check-prefix=NOTE
11 # RUN: llvm-readelf --sections %t-gnu-stack.o | FileCheck %s --check-prefix=GNU-STACK
20 # NORMAL: .foo PROGBITS
21 # NOTE: .note.foo NOTE
22 # GNU-STACK: .note.GNU-stack PROGBITS