Skip to content

elf: rename sh_line to sh_link in h2_elf.h#60

Merged
Erich Plondke (eplondke) merged 1 commit into
masterfrom
dev/ejp/sh_link
Jun 23, 2026
Merged

elf: rename sh_line to sh_link in h2_elf.h#60
Erich Plondke (eplondke) merged 1 commit into
masterfrom
dev/ejp/sh_link

Conversation

@eplondke

Copy link
Copy Markdown
Contributor

sh_link is the standard ELF field name; sh_line was a typo introduced when h2_elf.h was hand-typed to avoid GPL/Solaris elf.h headers. Update the one call site in h2_elf.ref.c and the two notes files that referenced the old name.

sh_link is the standard ELF field name; sh_line was a typo introduced
when h2_elf.h was hand-typed to avoid GPL/Solaris elf.h headers.
Update the one call site in h2_elf.ref.c and the two notes files that
referenced the old name.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Erich Plondke <erich@qti.qualcomm.com>
@github-actions github-actions Bot added the untested Mark untested PRs label Jun 23, 2026
Elf32_Off sh_offset;
Elf32_Word sh_size;
Elf32_Word sh_line;
Elf32_Word sh_link;

Choose a reason for hiding this comment

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

we can just use #include <elf.h> ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

At the time we wanted things to be very separated. Not sure where elf.h comes from or what license it has... so back in the day we just reimplemented it.

@eplondke Erich Plondke (eplondke) merged commit 654c792 into master Jun 23, 2026
12 checks passed
@eplondke

Copy link
Copy Markdown
Contributor Author

All checks pass and I think this is a pretty trivial typo fix... merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

untested Mark untested PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants