[PATCH] D58543: [yaml2obj]Re-allow dynamic sections to have raw content

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 22 04:27:51 PST 2019


grimar accepted this revision.
grimar added a comment.
This revision is now accepted and ready to land.

LGTM with a minor nit.



================
Comment at: test/tools/yaml2obj/dynamic-section-raw-content.yaml:20
+
+# ERR: Cannot specify both raw content and explicit entries for dynamic section '.dynamic'.
+
----------------
Could you group (move closer) the invocations and check lines?
i.e:

```
# RUN: yaml2obj --docnum=1 %s -o %t1
# RUN: llvm-readobj -x .dynamic --sections %t1 | FileCheck %s --check-prefix=RAW

# RAW:      Name: .dynamic
# RAW-NEXT: Type: SHT_DYNAMIC
# RAW-NEXT: Flags [
# RAW-NEXT: ]
# RAW-NEXT: Address:
# RAW-NEXT: Offset:
# RAW-NEXT: Size: 5

# RAW:      Hex dump of section '.dynamic':
# RAW-NEXT: 0x00000000 01234567 89 {{.*}}

# RUN: not yaml2obj --docnum=2 %s -o %t2 2>&1 | FileCheck %s --check-prefix=ERR
# ERR: Cannot specify both raw content and explicit entries for dynamic section '.dynamic'.
```


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58543/new/

https://reviews.llvm.org/D58543





More information about the llvm-commits mailing list