Re: aarch64 boot crash when printing non-static string

2024-08-03 Thread michal . lyszczek
On 2024-07-31 21:15:53, Matteo Golin wrote: > I cannot wrap my head around why I would be able to print a static string, > but not a non-static one. Both strings appear in the `.rodata` section of > the image when I inspect it with `objdump` as well. Even the assembly > `PRINT` macro in the arm64_h

Re: aarch64 boot crash when printing non-static string

2024-08-03 Thread Petro Karashchenko
Hello Matteo, It is quite hard to make any assumptions without having an example visible in front of my eyes. The case without `static` is a bit different, so despite string content is located in .rodata.str when you do not have `static` and string (char array) is declared in a function there is s