Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker script: implement ALIGN(expr,align) #30477

Closed
arichardson opened this issue Nov 23, 2016 · 1 comment
Closed

Linker script: implement ALIGN(expr,align) #30477

arichardson opened this issue Nov 23, 2016 · 1 comment
Labels
bugzilla Issues migrated from bugzilla lld:ELF

Comments

@arichardson
Copy link
Member

Bugzilla Link 31129
Resolution FIXED
Resolved on Dec 20, 2016 06:42
Version unspecified
OS Linux

Extended Description

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.

@arichardson
Copy link
Member Author

Fixed in r289968

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla lld:ELF
Projects
None yet
Development

No branches or pull requests

1 participant