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

maspsx doesn't handle forced .sbss via __attribute__((section(".sbss"))) #45

Open
mkst opened this issue Dec 24, 2023 · 0 comments
Open

Comments

@mkst
Copy link
Owner

mkst commented Dec 24, 2023

Using the __attribute__ modifier e.g.

struct __Player Raziel __attribute__((section(".sbss")));

to force gcc to put symbols in the .sbss section results in the following assembly:

	.section .sbss,"aw",@progbits
	.align	2
Raziel:
	.space	1464

Currently maspsx expects bss/sbss to use .comm or .lcomm directives and so these symbols will not end up in sbss (and so will not be considered for any special $gp-related flows.

Whilst the nice solution would be to omit the attribute modifier when using gcc+maspsx+gnu as, it shouldn't be too hard to handle this (to make it easier to compare psyq vs maspsx)

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

No branches or pull requests

1 participant