Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

sanitizer=cfi does not work with Clto=thin ? #111183

Open

Description

@matthiaskrgr

rustc src/main.rs -Zsanitizer=cfi -Zsanitizer-cfi-normalize-integers

error: `-Zsanitizer=cfi` requires `-Clto`, `-Clto=thin`, or `-Clinker-plugin-lto`

so I tried thin:
rustc src/main.rs -Zsanitizer=cfi -Zsanitizer-cfi-normalize-integers -Clto=thin
but this does not work?

error: failed to prepare thin LTO context: Expected a single module

Activity

  1. added
    C-bug
    on May 4, 2023
  2. added
    PG-exploit-mitigations
    on May 13, 2023
  3. rcvalle commented on Aug 9, 2023

    @rcvalle
    Member

    @rustbot claim

  4. rcvalle commented on Aug 9, 2023

    @rcvalle
    Member

    Unfortunately CFI currently doesn't work with rustc thin and local thin LTO, so I've disabled it for now in #113593, and intent to look at it--I just need more time.

  5. Jules-Bertholet commented on Apr 8, 2024

    @Jules-Bertholet
    Contributor

    @rustbot label A-sanitizers

  6. added
    A-sanitizers
    on Apr 8, 2024
  7. added
    A-control-flow-integrity
    on Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-control-flow-integrityA-sanitizersC-bugPG-exploit-mitigations

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions