8000 Fixed linker errors in SH by andrewapperley · Pull Request #809 · libffi/libffi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixed linker errors in SH #809

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrewapperley
Copy link
@andrewapperley andrewapperley commented Nov 22, 2023

Updated ffi_call_SYSV, ffi_closure_helper_SYSV, and ffi_closure_SYSV in SH source. This work is to allow FFI usage on the Sega Dreamcast, specifically NSInvocation in Libs-Base (Objective-c Foundation).

These changes were tested on the KOS toolchain.

@andrewapperley andrewapperley changed the title Updated linker errors in SH Fixed linker errors in SH Nov 22, 2023
@atgreen
Copy link
Member
atgreen commented Nov 23, 2023

Thanks for your submission -- but this is not really a patch that applies to the libffi repo. This patch should probably consist of changes to existing files, but instead you are providing new files that the build system wouldn't know how to use.

@andrewapperley
Copy link
Author

Thanks for your submission -- but this is not really a patch that applies to the libffi repo. This patch should probably consist of changes to existing files, but instead you are providing new files that the build system wouldn't know how to use.

Thanks for your submission -- but this is not really a patch that applies to the libffi repo. This patch should probably consist of changes to existing files, but instead you are providing new files that the build system wouldn't know how to use.

Oh darn. I put up the wrong files in my commit. Let me redo my pr and I’ll tag you when it’s ready. I apologize for getting you to review a half baked pr.

…in SH source. This work is to allow FFI usage on the Sega Dreamcast, specifically NSInvocation in Libs-Base (Objective-c Foundation)
@andrewapperley andrewapperley marked this pull request as ready for review November 23, 2023 20:04
@andrewapperley
Copy link
Author

@atgreen I have updated the PR with the proper commit. Sorry about the mix up.

@atgreen
Copy link
Member
atgreen commented Nov 24, 2023

Thanks for the update. The problem with this patch is that the leading underscore is not required for sh4-linux targets. See the test results with your patch here: https://rl.gl/doc-text?id=RLGL-O3HSVIWV

Check your configure output. Does it define SYMBOL_UNDERSCORE ? If so, we can use that in the asm code.

@andrewapperley
Copy link
Author
andrewapperley commented Nov 24, 2023

See the test results with your patch here: https://rl.gl/doc-text?id=RLGL-O3HSVIWV

These were the same errors I was seeing on sh4-kos. I'll check my output and comment back.

@gyrovorbis
Copy link

By the way, sorry to intrude, but I'm a bit curious as to why SH-4 isn't actually listed as a supported architecture on the main README for the repository?

We almost didn't bother trying to get this up and running on the Sega Dreamcast, because we didn't know if there was an SH4 implementation until we dug into the source... Seems to be working fine for us? We definitely have a community of interested developers along with the sh-linux guys! :)

@atgreen
Copy link
Member
atgreen commented Nov 25, 2023 via email

@atgreen
7DD4
Copy link
Member
atgreen commented Jun 5, 2025

By the way, sorry to intrude, but I'm a bit curious as to why SH-4 isn't actually listed as a supported architecture on the main README for the repository?

That was an oversight, which I've just corrected with commit 1b6b176

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

Successfully merging this pull request may close these issues.

3 participants
0