-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drm-kmod: Export symbols #327
base: master
Are you sure you want to change the base?
Conversation
We currently rely on the kernel linker resolving undefined references against local symbols from other kernel modules. Be explicit about the symbols to export, in advance of changing that behaviour. PR: 207898 Sponsored by: The FreeBSD Foundation
Wouldn't this be a pain to keep track of ? |
It'll be a bit of a pain, but it's not too bad. I generated these largely with a sed expression: We could take the same approach as Linux and use The alternative is to just set |
Also linuxkpi_video currently has In my tree I've changed it to:
|
I would prefer a script in the scripts directory that can generate this and put the result in a submakefile that the main ones include. |
#338 is a short-term workaround to avoid relying on kernel misbehaviour |
After applying https://bugs.freebsd.org/bugzilla/attachment.cgi?id=258740&action=diff, I'm still unable to load amdgpu on powerpc64le:
That is on 6.1.128.1402000_2. |
This patch isn't ready yet, please test with #338 instead. |
That's what I did, the pkg version is 6.1.128.1402000_2, which includes that change. I just posted here, because the discussion is relevant to the issue (symbols not exported). |
We currently rely on the kernel linker resolving undefined references against local symbols from other kernel modules. Be explicit about the symbols to export, in advance of changing that behaviour.
PR: 207898
Sponsored by: The FreeBSD Foundation