Skip to content

Conversation

@dsgallups
Copy link
Contributor

fixes #4169

@dsgallups dsgallups requested a review from a team as a code owner May 22, 2025 04:17
@dsgallups dsgallups marked this pull request as draft May 22, 2025 04:21
@dsgallups dsgallups closed this May 22, 2025
@dsgallups dsgallups reopened this May 22, 2025
@dsgallups dsgallups marked this pull request as ready for review May 22, 2025 04:54
Copy link
Contributor Author

@dsgallups dsgallups left a comment

Choose a reason for hiding this comment

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

I am sure this PR is amiss in other places for a few reasons

  1. I'm unsure if this is mold specific behavior
  2. I cannot find a reference for how rust gives equivalency betweenSTT_FUNC and STT_TLS
  3. I cannot reproduce on windows due to #4159, and I will only have access to mac in the AM to make sure this is inconsequential/beneficial.

Did not update the comment for the SymbolKind::Text arm

@jkelleyrtp
Copy link
Member

I think we can use the section of the symbol to determine which type of TLS it is. We do need both. Will take a poke at fixing it for the STT type. Do you have any projects or repro that includes both?

@jkelleyrtp jkelleyrtp merged commit 8216e4f into DioxusLabs:main May 22, 2025
15 of 17 checks passed
@dsgallups
Copy link
Contributor Author

dsgallups commented May 22, 2025

@jkelleyrtp Would it still be beneficial to have an MRE?

AnteDeliria pushed a commit to AnteDeliria/dioxus that referenced this pull request Jun 2, 2025
* fix: symbol kind in obj

* actually patch TLS

* update docs and cleanup size impl for tls

* remove debug logs

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
AnteDeliria pushed a commit to AnteDeliria/dioxus that referenced this pull request Jul 23, 2025
* fix: symbol kind in obj

* actually patch TLS

* update docs and cleanup size impl for tls

* remove debug logs

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
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.

Symbol type mismatch between STT_FUNC and STT_TLS

2 participants