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_head.S startup code declares the strings as
> rodata. I'm not sure what the difference is here, but it's preventing me
> from continuing to debug the boot process. I'm by no means very
> experienced, so I feel a bit stuck with this issue. I thought I would check
> if anyone here has encountered something similar.
> 
> Any tips or pointers of what else I can check would be really appreciated!

Can you maybe post stack trace from GDB after crash? Also check what address
is dereferenced. Static will probably have different address than non static.
aarch64 has some security and atf, maybe that is causing the problem? This is
just a wild guess.

Check failing instruction, dump info from it like addresses, and then do the
same for working static data. Maybe this will shed some light onto this
problem. It's good to know which instruction is failing and what arguments it
takes.

-- 
.-----------------.-------------------.----------------------.-----------------.
| Michal Lyszczek | Embedded C, Linux |   Company Address    |  .-. opensource |
| +48 727 564 419 | Software Engineer | Akacjowa 10a; 55-330 |  oo|  supporter |
| https://bofc.pl `----.--------------: Brzezinka Sredzka PL | /`'\      &     |
| GPG FF1EBFE7E3A974B1 | Bits of Code | NIP:   813 349 58 78 |(\_;/) programer |
`----------------------^--------------^----------------------^-----------------'

Attachment: signature.asc
Description: PGP signature

Reply via email to