Skip to content

Commit 74ef53a

Browse files
committed
[ELF] REGION_ALIAS: support quoted names
1 parent c89566f commit 74ef53a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lld/ELF/ScriptParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ void ScriptParser::readRegionAlias() {
549549
expect("(");
550550
StringRef alias = readName();
551551
expect(",");
552-
StringRef name = next();
552+
StringRef name = readName();
553553
expect(")");
554554

555555
if (script->memoryRegions.count(alias))

lld/test/ELF/linkerscript/region-alias.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# RUN: }" > %t.script
1212

1313
## .text to ROM, .data to RAM.
14-
# RUN: echo "REGION_ALIAS (\"ALIAS_TEXT\", ROM);" > %t.script.inc
14+
# RUN: echo 'REGION_ALIAS ("ALIAS_TEXT", "ROM");' > %t.script.inc
1515
# RUN: echo "REGION_ALIAS (\"ALIAS_DATA\", RAM);" >> %t.script.inc
1616
# RUN: ld.lld %t --script %t.script -o %t2
1717
# RUN: llvm-objdump --section-headers %t2 | FileCheck %s

0 commit comments

Comments
 (0)