Skip to content

llvm-objcopy --redefine-syms Does Not Update Symbols in PE/COFF (.dll) Files #129366

Closed
@Harishmcw

Description

@Harishmcw

Hi Developers,

When using llvm-objcopy on a PE/COFF .dll file to rename symbols using the --redefine-syms option, the command executes successfully, and the timestamp of the file updates. However, when inspecting the modified .dll, the symbols remain unchanged.

Command Executed:

llvm-objcopy --redefine-syms objcopy.def openblas.dll

Definition File (objcopy.def):

lsame_ scipy_lsame_
xerbla_ scipy_xerbla_
isamax_ scipy_isamax_
isamin_ scipy_isamin_
ismax_ scipy_ismax_

Please confirm whether --redefine-syms is expected to work on PE/COFF .dll files. If not, should it be documented as unsupported? Otherwise, if this is a bug, a fix would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions