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

BSS segment not cleared on firmware load #46

Closed
dinuxbg opened this issue Jan 21, 2023 · 4 comments
Closed

BSS segment not cleared on firmware load #46

dinuxbg opened this issue Jan 21, 2023 · 4 comments
Assignees
Labels

Comments

@dinuxbg
Copy link
Owner

dinuxbg commented Jan 21, 2023

BSS segment is not cleared by the Linux kernel firmware loader.

Host: Linux BeagleBone 5.10.120-ti-arm64-r63 #1bullseye SMP Fri Sep 2 01:18:17 UTC 2022 aarch64 GNU/Linux

@dinuxbg dinuxbg added the bug label Jan 21, 2023
@dinuxbg
Copy link
Owner Author

dinuxbg commented Jan 21, 2023

Also present in latest BB-AI64 kernel:

 Linux BeagleBone 5.10.153-ti-arm64-r86 #1bullseye SMP Wed Jan 4 19:47:11 UTC 2023 aarch64 GNU/Linux

@dinuxbg
Copy link
Owner Author

dinuxbg commented Jan 21, 2023

Seems intentional behavior. From https://github.com/beagleboard/linux/blob/5.10.153-ti-arm64-r86/drivers/remoteproc/pru_rproc.c#L974 :

/* skip the memzero logic performed by remoteproc ELF loader */

This post has some background: https://lore.kernel.org/lkml/[email protected]/

@dinuxbg dinuxbg self-assigned this Jan 22, 2023
@dinuxbg dinuxbg pinned this issue Jan 22, 2023
@dinuxbg
Copy link
Owner Author

dinuxbg commented Jan 30, 2023

Sent a fix to upstream for review: https://sourceware.org/pipermail/binutils/2023-January/125836.html

dinuxbg pushed a commit that referenced this issue Feb 4, 2023
This should fix issue #46.

Signed-off-by: Dimitar Dimitrov <[email protected]>
@dinuxbg
Copy link
Owner Author

dinuxbg commented Feb 4, 2023

Fixed with release 2023.01

@dinuxbg dinuxbg closed this as completed Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant