LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 31129 - Linker script: implement ALIGN(expr,align)
Summary: Linker script: implement ALIGN(expr,align)
Status: RESOLVED FIXED
Alias: None
Product: lld
Classification: Unclassified
Component: ELF (show other bugs)
Version: unspecified
Hardware: PC Linux
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-22 17:35 PST by Alexander Richardson
Modified: 2016-12-20 06:42 PST (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Richardson 2016-11-22 17:35:36 PST
In the following linker script lld fails to parse the ALIGN() expression

	__bss_start = ADDR(.bss);
	__bss_end = ALIGN(__bss_start + SIZEOF(.bss), 0x8);

The error I get is ") expected, but got ,".

Looking at LinkerScript.cpp it seems that ALIGN currently only handles one argument.
Comment 1 Alexander Richardson 2016-12-20 06:42:48 PST
Fixed in r289968