[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / test / tools / llvm-objcopy / ELF / set-section-flags-and-rename.test
blob4b553b3304e45053b7ed63c517d3a4cd8737ac29
1 # RUN: yaml2obj %s -o %t
3 # RUN: not llvm-objcopy --rename-section=.foo=.bar --set-section-flags=.foo=alloc %t %t.2 2>&1 | FileCheck %s --check-prefix=SET-FOO
4 # RUN: not llvm-objcopy --rename-section=.foo=.bar --set-section-flags=.bar=alloc %t %t.2 2>&1 | FileCheck %s --check-prefix=SET-BAR
6 !ELF
7 FileHeader:
8   Class:           ELFCLASS64
9   Data:            ELFDATA2LSB
10   Type:            ET_REL
11   Machine:         EM_X86_64
13 # SET-FOO: --set-section-flags=.foo conflicts with --rename-section=.foo=.bar
14 # SET-BAR: --set-section-flags=.bar conflicts with --rename-section=.foo=.bar