Skip to content

Warning from linker about alignment of .text section #678

Description

@jonathanpallant

I'm writing a simple Rust program for STM32U5A5, using the stm32-rs PAC.

It seems I have 0x218 bytes worth of interrupt vectors (134 vectors).

This puts .text at 0xc000258, which the linker warns me is not a multiple of 16

warning: linker stderr: rust-lld: address (0xc000258) of section .text is not a multiple of alignment (16)
  |
  = note: `#[warn(linker_messages)]` on by default

Should link.x apply some alignment to the start of the .text section?

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