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

Kernel's inflate code may not work properly with -O3 #68

Open
VVIsaev opened this issue Jan 27, 2022 · 0 comments
Open

Kernel's inflate code may not work properly with -O3 #68

VVIsaev opened this issue Jan 27, 2022 · 0 comments

Comments

@VVIsaev
Copy link

VVIsaev commented Jan 27, 2022

There is an alignment issue with inflate code which causes some tricky problems, such as corrupted files or binaries.
Other arches don't see this because we are the only one which uses -O3 for building kernel.

There is a workaround for the issue in the arc64 branch:

# workaround for issue #372

Original problem: foss-for-synopsys-dwc-arc-processors/toolchain#372
GNU GCC issue (resolved invalid): https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100363
lkml thread: https://lkml.org/lkml/2021/4/30/864

Need to fix this in upstream as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants