-
Notifications
You must be signed in to change notification settings - Fork 52
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
Omit assembler debug level to improve toolchain compatability #79
Omit assembler debug level to improve toolchain compatability #79
Conversation
b03dc95
to
ea36717
Compare
I guess the reason we pin a specific version of the toolchain is to avoid issues like this. I'm not hesitant to upgrade the toolchain version if there's some specific reason for it, but the README does mention a specific toolchain version for a reason. |
I noticed that the debug level parameter to So, there is no cost to dropping the debug level parameter to |
Thanks for looking into it, I have come across this issue before and I did find documentation on it here https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html (search for I know that the toolchain provided by ARM for GCC 12 and above does not allow specifying the level and for adding macOS support to the SDK we would need to upgrade the toolchain version anyways as the macOS ARM64 host toolchain is only available for 12 and above. This kind of inconsistency between C compilers is quite... annoying. What I might do is take your patch and see if the hash of all the ELFs is the same, that way we'll know if specifying the level is doing anything. |
GCC supports a debug level parameter, but the issue here is the assembler ( |
Ah my bad, I thought you were removing |
More recent versions of aarch64-none-elf-as don't support passing a debug level to -g. Signed-off-by: Nick Spinale <[email protected]>
ea36717
to
c7c6112
Compare
No difference in the binaries. Merged in this case because we don't have to do any special handling to get both the ARM provided toolchain and the Nix ARM toolchain working and I want to upgrade to GCC 12 soon anyways for macOS support. |
More recent versions of
aarch64-none-elf-as
don't support passing a debug level to-g
.Specifically, GNU Binutils 2.40 (associated with GCC 12.3) doesn't support this.