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 expression parser does not accept '~' #29569

Closed
emaste opened this issue Aug 31, 2016 · 2 comments
Closed

linker script expression parser does not accept '~' #29569

emaste opened this issue Aug 31, 2016 · 2 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla lld:ELF

Comments

@emaste
Copy link
Member

emaste commented Aug 31, 2016

Bugzilla Link 30221
Resolution FIXED
Resolved on Sep 03, 2016 07:50
Version unspecified
OS FreeBSD
Blocks #23588
CC @atanasyan

Extended Description

A bootloader component of FreeBSD/mips64 uses a linker script with an expression containing a bitwise not (~), which lld does not accept:

line 53: malformed number: ~
. = ((. + 0x1000) & ~(0x1000 - 1));
^

The script in question can be found at https://svnweb.freebsd.org/base/head/sys/boot/mips/uboot/ldscript.mips?annotate=296183#l53

@emaste
Copy link
Member Author

emaste commented Aug 31, 2016

assigned to @atanasyan

@atanasyan
Copy link
Collaborator

Fixed at r280546.

@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

2 participants