Preserve case when outputting symbols in sym format#155
Preserve case when outputting symbols in sym format#155Zeturic wants to merge 1 commit intoKingcom:masterfrom
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
symformat 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'sFoobut ARMIPS ultimately outputsfooin the symbol file, because No$GBA doesn't treat them case-insensitively and thus doesn't recognize thatFooexists.This PR makes both
symcase-preserving (sym2already 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.