Skip to content

Restore linker errors for incomplete binaries#7

Merged
trhodeos merged 2 commits intotrhodeos:masterfrom
ChrisPVille:upstream
Sep 5, 2020
Merged

Restore linker errors for incomplete binaries#7
trhodeos merged 2 commits intotrhodeos:masterfrom
ChrisPVille:upstream

Conversation

@ChrisPVille
Copy link
Copy Markdown
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
Copy Markdown
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