llvm / llvm/llvm-project

llvm-objcopy fails with “section number out of range”

Open
#169,992 10 comments 0 reactions 0 assignees View on GitHub
tools:llvm-objcopy/strip
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

```
llvm-objcopy --only-keep-debug App.exe App.exe.debug
llvm-objcopy.exe: error: 'App.exe': section number out of range
```

```
llvm-objcopy --version
llvm-objcopy, compatible with GNU objcopy
LLVM (http://llvm.org/):
LLVM version 20.1.3
Optimized build.
```

```
-rwxr-xr-x
size: 4466043392
name: App.exe
```

I'm building the application with debug information.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.