Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PE/COFF] --set-section-flags is ignored when used jointly with --add-section, so size and VMA are not set #50588

Open
alfonsosanchezbeato opened this issue Jul 28, 2021 · 2 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla tools:llvm-objcopy/strip

Comments

@alfonsosanchezbeato
Copy link
Member

Bugzilla Link 51244
Version trunk
OS Linux
Attachments Proposed fix
CC @alexshap,@jh7370,@rupprecht

Extended Description

When running

llvm-objcopy --add-section .sect= --set-section-flags .sect=data

for a PE/COFF binary, the section flags are ignored, so VirtualSize and VirtualAddress in the section header are always set to 0.

@alfonsosanchezbeato
Copy link
Member Author

assigned to @alfonsosanchezbeato

@alfonsosanchezbeato
Copy link
Member Author

Created differential: https://reviews.llvm.org/D106942

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla tools:llvm-objcopy/strip
Projects
None yet
Development

No branches or pull requests

1 participant