[PATCH] D61201: [LLD][ELF] Full support for -n (--nmagic) and -N (--omagic)
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 30 03:34:03 PDT 2019
grimar added inline comments.
================
Comment at: test/ELF/linkerscript/nmagic-alignment.test:9
+
+# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/nmagic.s -o %t.o
+# RUN: ld.lld %t.o -o %t.so --shared --hash-style=sysv --script %s
----------------
Ah, and here instead of adding an input, I think you can just do:
```
# RUN: echo ".text; .globl foo; foo: nop" > %t.s
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %t.s -o %t.o
```
(We often use `echo` in *.test for minor asm pieces)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61201/new/
https://reviews.llvm.org/D61201
More information about the llvm-commits
mailing list