go build elf file, elf.write error Invalid ElfObjectFile
Open
Nobody has claimed this yet.
question
- Dominant language
- C#
- Stars
- 184
- Forks
- 17
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 1
Description
go build a elf file
elf.write error:
Invalid ElfObjectFile
Error LB0154: Invalid PT_LOAD segment alignment requirements: (VirtualAddress - Range.Offset) & (Alignment - 1) == 128 while it must be == 0

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce with the Go-built ELF described in the report and start at the elf.write path that emits “Invalid ElfObjectFile” and LB0154, then inspect the PT_LOAD alignment check. Done means the reported ELF can be written without the alignment error, with the behavior covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, go
- Domain
- compilers, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100