We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c89566f commit 74ef53aCopy full SHA for 74ef53a
lld/ELF/ScriptParser.cpp
@@ -549,7 +549,7 @@ void ScriptParser::readRegionAlias() {
549
expect("(");
550
StringRef alias = readName();
551
expect(",");
552
- StringRef name = next();
+ StringRef name = readName();
553
expect(")");
554
555
if (script->memoryRegions.count(alias))
lld/test/ELF/linkerscript/region-alias.s
@@ -11,7 +11,7 @@
11
# RUN: }" > %t.script
12
13
## .text to ROM, .data to RAM.
14
-# RUN: echo "REGION_ALIAS (\"ALIAS_TEXT\", ROM);" > %t.script.inc
+# RUN: echo 'REGION_ALIAS ("ALIAS_TEXT", "ROM");' > %t.script.inc
15
# RUN: echo "REGION_ALIAS (\"ALIAS_DATA\", RAM);" >> %t.script.inc
16
# RUN: ld.lld %t --script %t.script -o %t2
17
# RUN: llvm-objdump --section-headers %t2 | FileCheck %s
0 commit comments