File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -660,7 +660,7 @@ void ScriptParser::readSections() {
660
660
isAfter = true ;
661
661
else if (!consume (" BEFORE" ))
662
662
setError (" expected AFTER/BEFORE, but got '" + next () + " '" );
663
- StringRef where = next ();
663
+ StringRef where = readName ();
664
664
SmallVector<StringRef, 0 > names;
665
665
for (SectionCommand *cmd : v)
666
666
if (auto *os = dyn_cast<OutputDesc>(cmd))
Original file line number Diff line number Diff line change 41
41
42
42
SECTIONS { .byte : { BYTE(0) } } INSERT AFTER .data;
43
43
44
- SECTIONS { .foo.data : { *(.foo.data) } } INSERT AFTER .data;
44
+ SECTIONS { .foo.data : { *(.foo.data) } } INSERT AFTER " .data" ;
45
45
46
46
## The input section .foo.text is an orphan. It will be placed in .foo.text
47
47
SECTIONS { .foo.text : {} } INSERT AFTER .text;
Original file line number Diff line number Diff line change @@ -50,4 +50,4 @@ SECTIONS { .byte : { BYTE(0) } } INSERT BEFORE .data;
50
50
SECTIONS { .foo.data : { *(.foo.data) } } INSERT BEFORE .data;
51
51
52
52
## The input section .foo.text is an orphan. It will be placed in .foo.text
53
- SECTIONS { .foo.text : { x0 = .; } } INSERT BEFORE .text;
53
+ SECTIONS { .foo.text : { x0 = .; } } INSERT BEFORE " .text" ;
You can’t perform that action at this time.
0 commit comments