Skip to content

Release 1.7-21-g814d573 fails assembling with error Duplicate text segment address on valid source code #120

@pacalet

Description

@pacalet

Under Ubuntu 24.04.3 LTS (Noble Numbat), Debian 13 (trixie) or macOS 13.7.8 (Ventura), with the JAR release 1.7-21-g814d573 (https://github.com/rarsm/rars/releases/download/lastest/rars-flatlaf.jar) and the following settings:

Image

assembling this simple code:

.text
.global main
main:
li a7,10
ecall

causes the following error:

Assemble: assembling /home/joe/bug.s

Error in : Duplicate text segment address: 0x00400004 already occupied by /home/joe/bug.s line 5 (caused by use of .text operand)
Assemble: operation completed with errors.

Disabling option Initialize Program Counter to global 'main' if defined apparently solves the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions