Skip to content

Dynamic linking experiments are stumbled by unconditional "--export-table" #251

Closed
@pepyakin

Description

@pepyakin

I've discovered flags like --pic/--shared in the latest LLD (seems to be not yet available in the LLD shipped with rust). But when I try to use them I'm getting this LLD error:

lld: error: -shared/-pie is incompatible with --export-table

I tried to pass --import-table to override the rustc passed --export-table, however, LLD doesn't support that, and fails with

lld: error: --import-table and --export-table may not be used together

Do you have any idea how to proceed here?

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