[PATCH] D27561: [ELF] Allow output section data commands to take expressions

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 9 04:00:24 PST 2016


grimar added inline comments.


================
Comment at: test/ELF/linkerscript/data-commands.s:49
+# BE-NEXT:   ff12ff11 22ff1122 3346ff11 22334455
+# BE-NEXT:   667788
+
----------------
It's a bit wierd.
First 3 lines are equal with test above I think ?
```
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %tmips64be
# RUN: ld.lld --script %t.script %tmips64be -o %t2
# RUN: llvm-objdump -s %t2 | FileCheck %s --check-prefix=BE
```

And you share "BE" with it, its very confusing. I think what you wanted to do is use test above and
just add checks:

```
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %tmips64be
# RUN: ld.lld --script %t.script %tmips64be -o %t2
# RUN: llvm-objdump -s %t2 | FileCheck %s --check-prefix=BE
# BE:      Contents of section .foo:
# BE-NEXT:   ff11ff11 22ff1122 3344ff11 22334455
# BE-NEXT:   667788
# BE:      Contents of section .bar:
# BE-NEXT:   ff12ff11 22ff1122 3346ff11 22334455
# BE-NEXT:   667788
```


https://reviews.llvm.org/D27561





More information about the llvm-commits mailing list