Skip to content

rustc doesn't propagate custom link sections #31758

Closed
@rasendubi

Description

@rasendubi

I have a library that outputs a custom link section (.isr_vector). That works fine, but when I link that library into the second one, there is no .isr_vector section in the result static library.

That worked before, so I bisected the issue down to a nightly build. The first bad nightly is 2016-02-12 (rustc 1.8.0-nightly (4b2c7030f 2016-02-12)). The last good one is 2016-02-11 (rustc 1.8.0-nightly (3f4227af1 2016-02-10)).

The full source is here: https://github.com/rasendubi/bkernel/tree/f788e32a2e0493420236cc2642cfaa9c4824203a. The link section is defined in https://github.com/rasendubi/bkernel/blob/f788e32a2e0493420236cc2642cfaa9c4824203a/stm32f4/isr_vector.rs.

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