Skip to content

[lld] Bug with Assert in linker scripts #140141

Open
@lquinn2015

Description

@lquinn2015

This test https://github.com/llvm/llvm-project/blob/main/lld/test/ELF/linkerscript/assert.s

A semicolon after an Assert statement causes some type of bad state in LLVM lld this is problematic

The error statement is totally misleading

Image

I believe fixing it is as simple as adding a peak consume in the parsing logic of assert statements. credit @pitust I will try and make a fix tomorrow

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions