Skip to content

Conversation

@jmi-reds
Copy link
Contributor

No description provided.

@jmi-reds jmi-reds self-assigned this Dec 16, 2025
Copy link
Contributor

@clemdiep clemdiep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just waiting for #235 to be merged to approve, as some commits come from that PR.

clemdiep and others added 14 commits January 14, 2026 14:42
The apps are: hello-world, simple class & use of std::vector

Signed-off-by: Jean-Pierre Miceli <jean-pierre.miceli@heig-vd.ch>
Signed-off-by: Jean-Pierre Miceli <jean-pierre.miceli@heig-vd.ch>
Signed-off-by: Jean-Pierre Miceli <jean-pierre.miceli@heig-vd.ch>
Signed-off-by: Jean-Pierre Miceli <jean-pierre.miceli@heig-vd.ch>
The '.debug_*' sections of the usr apps are move in a seperated
file ('app.elf.debug'). The apps is then much lighter. For
example, C++ hello-world shrink form 8.2MB to 884K.

For debug, the app.elf.debug is linked with the app.elf.

Signed-off-by: Jean-Pierre Miceli <jean-pierre.miceli@heig-vd.ch>
Signed-off-by: Jean-Pierre Miceli <jean-pierre.miceli@heig-vd.ch>
Signed-off-by: Jean-Pierre Miceli <jean-pierre.miceli@heig-vd.ch>
Signed-off-by: Jean-Pierre Miceli <jean-pierre.miceli@heig-vd.ch>
Signed-off-by: Jean-Pierre Miceli <jean-pierre.miceli@heig-vd.ch>
Signed-off-by: Jean-Pierre Miceli <jean-pierre.miceli@heig-vd.ch>
Signed-off-by: Jean-Pierre Miceli <jean-pierre.miceli@heig-vd.ch>
Signed-off-by: Jean-Pierre Miceli <jean-pierre.miceli@heig-vd.ch>
Copy link
Contributor

@clemdiep clemdiep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small thing, but otherwise it's ok to me.

There is a bug with 32bits where the elf isn't loaded correctly only for C++ applications. I'm working on fixing this.

@clemdiep
Copy link
Contributor

I fixed the bugs with ARM32 for C++ and added this to this PR, summary:

  • Added kuser helpers, those are function provided by the kernel that userspace can call for ARM32. The implementaion of those functions is copied from Linux. Implementation of __kuser_cmpxchg64 was removed because it was using an unknown instruction by the compiler and didn't seems to be used by GCC. A call to it will lead to a kernel panic
  • Rework of how elf is loaded. Now the full segment is copied from the file to the memory without whitelist of sections, the memory was already allocated so no additionnal memory will be used

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

Successfully merging this pull request may close these issues.

4 participants