-
Notifications
You must be signed in to change notification settings - Fork 78
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
Preserve case when outputting symbols in sym format #155
base: master
Are you sure you want to change the base?
Conversation
Oh, whoops. I just realized that e595501 is buggy. If the capitalization doesn't match between the I've reverted it for now, while I work on having |
f14cb76
to
c3331a0
Compare
c3331a0
to
620e117
Compare
I rebased against the most recent master (though admittedly there were no conflicts). Also, I forgot to mention when I initially posted this, but if there's some compelling technical reason why |
Sorry, I forgot about this one. The -sym option was meant to be compatible with the no$gba assembler, which is why it also lowercases everything. -sym2 was an extension made to support function sizes in PPSSPP, which does not lowercase the labels. If you do not use .function, the -sym2 output should be identical to the -sym output except for the label cases. It is probably worth discussing if keeping the no$gba behavior is worth it. Its assembler was never particularly good, and I doubt there are many people who depend on this behavior. |
I meant to respond to this much earlier, sorry. The reason I couldn't personally use As a small aside, one of the changes I made in the PR was to preserve the I'll also be honest, I'm not actually familiar with a standalone No$GBA assembler. I've only ever used these sorts of files as an input to the No$GBA debugging emulator (which yes, does allow you to assemble code at particular locations in a ROM while it's running, but I don't think that's what you were referring to), or more recently, doing the same thing in mGBA. |
620e117
to
f234ad4
Compare
Do you think you could send the |
f234ad4
to
dc5149b
Compare
Because it is at least possible that changing It's small, doesn't affect I can force push that commit into this PR branch if desired. |
Sorry for not opening an issue first. But basically:
The
sym
format normally lowercases all of the symbols when writing the sym file. This can be irritating when the "canonical" version of the name isn't the lowercased one - e.g. in C-land it'sFoo
but ARMIPS ultimately outputsfoo
in the symbol file, because No$GBA doesn't treat them case-insensitively and thus doesn't recognize thatFoo
exists.This PR makes both
sym
case-preserving (sym2
already was), avoiding that issue.If you'd rather this be combined into a single commit, just let me know.
Edit: I went ahead and squashed this into one commit.