xoofx / xoofx/LibObjectFile

go build elf file, elf.write error Invalid ElfObjectFile

Open
#20 3 comments 0 reactions 0 assignees View on GitHub

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

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.