forked from OSchip/llvm-project
[lld-macho][nfc] Expand the compact unwind symbol reloc test
Add a bit more detail to the comments, and check that the final binary does indeed have a `__unwind_info` section (D105557 previosly regressed this). Also rename the test to emphasize that we are testing relocations compact unwind, not relocations in general.
This commit is contained in:
parent
1a5f4cbe1b
commit
d5c0b9c848
|
@ -1,5 +1,11 @@
|
||||||
# REQUIRES: x86
|
# REQUIRES: x86
|
||||||
## These yaml files were from an object file produced with 'ld -r', specifically:
|
|
||||||
|
## Test that we correctly handle symbol relocations in the compact unwind
|
||||||
|
## section.
|
||||||
|
|
||||||
|
## llvm-mc does not emit such relocations for compact unwind, but `ld -r` does.
|
||||||
|
## As such, these yaml files were from an object file produced with 'ld -r',
|
||||||
|
## specifically:
|
||||||
##
|
##
|
||||||
## // foo.s
|
## // foo.s
|
||||||
## .text
|
## .text
|
||||||
|
@ -13,10 +19,11 @@
|
||||||
## llvm-mc -filetype=obj -triple=x86_64-apple-macos10.15 -o foo1.o foo.s
|
## llvm-mc -filetype=obj -triple=x86_64-apple-macos10.15 -o foo1.o foo.s
|
||||||
## ld -r -o foo.o foo1.o
|
## ld -r -o foo.o foo1.o
|
||||||
|
|
||||||
|
|
||||||
# RUN: rm -rf %t; mkdir -p %t
|
# RUN: rm -rf %t; mkdir -p %t
|
||||||
# RUN: yaml2obj %s -o %t/foo.o
|
# RUN: yaml2obj %s -o %t/foo.o
|
||||||
# RUN: %lld -o %t/a.out %t/foo.o
|
# RUN: %lld -o %t/a.out %t/foo.o
|
||||||
|
# RUN: llvm-objdump --macho --section-headers %t/a.out | FileCheck %s
|
||||||
|
# CHECK: __unwind_info {{.*}} DATA
|
||||||
|
|
||||||
--- !mach-o
|
--- !mach-o
|
||||||
FileHeader:
|
FileHeader:
|
Loading…
Reference in New Issue