Skip to content

[fix] should hide some symbols that are mostly internal and likely co…#9

Merged
stef merged 4 commits into
masterfrom
hide-private-syms
Jun 28, 2025
Merged

[fix] should hide some symbols that are mostly internal and likely co…#9
stef merged 4 commits into
masterfrom
hide-private-syms

Conversation

@stef
Copy link
Copy Markdown
Owner

@stef stef commented Jun 24, 2025

…llide with other symbols in linked projects

should fix #8

Copy link
Copy Markdown
Contributor

@flynn162 flynn162 left a comment

Choose a reason for hiding this comment

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

2 more functions do not have any prefix:

  • invertedVMDmatrix in mpmult.c
  • expand_message_xmd

Comment thread src/dkg.c Outdated
Comment thread src/utils.c
@stef
Copy link
Copy Markdown
Owner Author

stef commented Jun 24, 2025

2 more functions do not have any prefix:

  • invertedVMDmatrix in mpmult.c

hmmm. right. not sure if this cannot be even static. gotta check this.

  • expand_message_xmd

hmmm, i think this is needed in libopaque though. maybe prefix it with h2c_ ?

@sonarqubecloud
Copy link
Copy Markdown

@stef
Copy link
Copy Markdown
Owner Author

stef commented Jun 26, 2025

i tested these changes against all my projects that depend on liboprf and they seem to work. although the loss of debug traces is a bit meh. i can live with this. i'll have a last look and merge this over the weekend.

@stef stef merged commit bc6be07 into master Jun 28, 2025
4 checks passed
@stef stef deleted the hide-private-syms branch June 28, 2025 14:22
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.

Use __attribute__((visibility("hidden"))) to hide private functions from the dynamic export table

2 participants