Skip to content

Support dt needed in linker#50

Merged
katsyoshi merged 2 commits intomainfrom
support-dt-needed-in-linker
Apr 18, 2026
Merged

Support dt needed in linker#50
katsyoshi merged 2 commits intomainfrom
support-dt-needed-in-linker

Conversation

@katsyoshi
Copy link
Copy Markdown
Owner

add test for needed section

@katsyoshi katsyoshi merged commit 48f5214 into main Apr 18, 2026
2 checks passed
@katsyoshi katsyoshi deleted the support-dt-needed-in-linker branch April 18, 2026 12:38
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0b9f417628

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

dynsym_names = dynsym.body.map(&:name_string)
assert_equal(1, needed.size)
assert_equal(dynstr.body.lookup(needed.first.un), "libc.so.6")
assert_include(dynsym_names, "_exit")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Drop _exit assertion from dynsym checks

These new assertions make the test suite fail against the current linker implementation because _exit is an undefined import in start.o, and the builder only exports defined symbols to .dynsym (next if sym.shndx == 0 in Caotral::Linker::Builder). As written, test_start_in_dynamic_section (and the same check later in test_start_in_shared_object) will fail even when DT_NEEDED handling is correct, turning this feature test into a persistent false negative.

Useful? React with 👍 / 👎.

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.

1 participant