This finishes PR35877. INSERT BEFORE used similar to INSERT AFTER, it inserts sections before the given target section. Differential revision: https://reviews.llvm.org/D44380 llvm-svn: 327378
7 lines
164 B
Plaintext
7 lines
164 B
Plaintext
SECTIONS {
|
|
.foo : { *(.bar) }
|
|
} INSERT .data;
|
|
|
|
# RUN: not ld.lld -o %t1 --script %s 2>&1 | FileCheck %s
|
|
# CHECK: {{.*}}:3: expected AFTER/BEFORE, but got '.data'
|