Skip to content

symbol: Fix build error in elf_for_each_comment()#2034

Merged
namhyung merged 1 commit into
namhyung:masterfrom
junyeong0619:rawelf
Mar 14, 2026
Merged

symbol: Fix build error in elf_for_each_comment()#2034
namhyung merged 1 commit into
namhyung:masterfrom
junyeong0619:rawelf

Conversation

@junyeong0619

Copy link
Copy Markdown
Contributor

As the issue that I opened #2033
The elf_for_each_comment() macro incorrectly used strcmp() instead of strlen() when calculating the next comment offset. This caused a compilation error when libelf was not present and the internal ELF parser was used.

The elf_for_each_comment() macro incorrectly used strcmp() instead
of strlen() when calculating the next comment offset. This caused
a compilation error when libelf was not present and the internal
ELF parser was used.

Fix namhyung#2033

Signed-off-by: Jun Yeong Kim <junyeonggim5@gmail.com>

@namhyung namhyung left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@namhyung namhyung merged commit 498d3c6 into namhyung:master Mar 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants