Skip to content
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

Restore linker errors for incomplete binaries #7

Merged
merged 2 commits into from
Sep 5, 2020
Merged

Restore linker errors for incomplete binaries #7

merged 2 commits into from
Sep 5, 2020

Conversation

ChrisPVille
Copy link
Contributor

This closes #6 by removing the noinhibit-exec flag. As a result, some of the demos which previously built (but did not work) now complain about why they won't work.

With a modern GCC10 toolchain most of those problems were either the Kuseg zbuffer/cfb/etc. sections trying to load into Kseg0 (which @lambertjamesd fixed), or the use of functions from libgcc that is not built following some N64 homebrew guides.

The "-noinhibit-exec" has the side-effect of inhibiting most errors emitted by ld, including the overlapping section errors or undefined reference errors.  Even when these are explicitly enabled noinhibit-exec will cause the link to silently succeed at generating a broken binary.
@trhodeos
Copy link
Owner

trhodeos commented Sep 5, 2020

Thank you!

@trhodeos trhodeos merged commit 47409fb into trhodeos:master Sep 5, 2020
@ChrisPVille ChrisPVille deleted the upstream branch September 6, 2020 12:47
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.

No error on undefined references at link time
2 participants